Huebook

Moroccan Blue to Midnight Crest Gradient

CSS

background: linear-gradient(90deg, #115674 0%, #112473 100%);

From Moroccan Blue (#115674) to Midnight Crest (#112473). The two hues are 30° apart on the color wheel, close enough that the blend stays clean without a muddy middle.

Colors along the gradient

NameHEXRGBHSLCMYK
Moroccan Blue#11567417, 86, 116198°, 74%, 26%85, 26, 0, 55
25% (near Moroccan Blue)#114A7417, 74, 116205°, 74%, 26%85, 36, 0, 55
50% (near Atlantic Navy)#113D7417, 61, 116213°, 74%, 26%85, 47, 0, 55
75% (near Atlantic Navy)#11317317, 49, 115220°, 74%, 26%85, 57, 0, 55
Midnight Crest#11247317, 36, 115228°, 74%, 26%85, 69, 0, 55

Halfway along, the gradient is #113D74, closest to the named color Atlantic Navy. The stops are mixed in RGB, the way browsers draw a linear gradient by default.

Text on this gradient

White text reads best on both ends, so one text color works across the whole gradient. The two end colors have a contrast ratio of 1.71:1, so the change is gentle.

Other ways to use it

Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.

Questions

What are the HEX codes of the Moroccan Blue to Midnight Crest gradient?

It starts at #115674 (Moroccan Blue) and ends at #112473 (Midnight Crest), with #113D74 in the middle.

How do I reverse the gradient?

Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #115674, #112473) runs from Midnight Crest on the left to Moroccan Blue on the right.