Wearing a denim jacket with jeans is one of the easiest outfits to get slightly wrong. The cut is fine and the pieces are good, yet the whole thing looks like two unrelated things that happened to be blue. The cause is almost always the same: the two washes sit close to each other but are not the same.
The eye is good at spotting a match and good at spotting a clear difference. It is bad with the middle ground. Two blues that are nearly the same read as an attempt at a set that missed. Two blues that are clearly apart read as a decision.
Think of four steps of wash, from light to black. You can wear any two of them together, and the gap between them decides how the outfit reads.
Try the pairs yourself. Pick a jacket wash and a jeans wash, then switch the tee underneath.
Denim is never one flat colour. Every wash has its own fade, its own greenish or reddish cast and its own shine. Two pieces from different makers will rarely agree on all three, even when the labels both say "mid blue". When the base colours are close, those small differences become the first thing you notice. When the base colours are far apart, the eye reads the big difference and ignores the small ones.
Match exactly, or be clearly different. The middle is where it goes wrong.
If you want the set look, start from one wash and let the details agree: the same fade, the same stitching colour and a similar fabric weight. Break it up with a plain tee in a neutral colour so it does not read as a boiler suit.
A pale jacket with dark jeans is the easiest contrast to wear, because the colours sit at opposite ends of the same family. A dark jacket with pale jeans is a little heavier at the top and suits a cropped jacket and a high rise, which keeps the proportion balanced: short over long.
Black or off-white jeans with a blue jacket sidestep the whole question, because they are no longer the same material in a similar colour. You still get the denim texture, and nobody can say it nearly matched.
The rule is short enough to remember at the wardrobe: match it, or move it two steps.