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
| Name | HEX | RGB | HSL | CMYK | |
|---|---|---|---|---|---|
| Moroccan Blue | #115674 | 17, 86, 116 | 198°, 74%, 26% | 85, 26, 0, 55 | |
| 25% (near Moroccan Blue) | #114A74 | 17, 74, 116 | 205°, 74%, 26% | 85, 36, 0, 55 | |
| 50% (near Atlantic Navy) | #113D74 | 17, 61, 116 | 213°, 74%, 26% | 85, 47, 0, 55 | |
| 75% (near Atlantic Navy) | #113173 | 17, 49, 115 | 220°, 74%, 26% | 85, 57, 0, 55 | |
| Midnight Crest | #112473 | 17, 36, 115 | 228°, 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
- Top to bottom:
linear-gradient(180deg, #115674, #112473) - Diagonal:
linear-gradient(135deg, #115674, #112473) - Radial, from the center out:
radial-gradient(circle, #115674, #112473) - Tailwind CSS:
bg-gradient-to-r from-[#115674] to-[#112473]
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.