Mediterranea to Naval Blue Gradient
CSS
background: linear-gradient(90deg, #39636a 0%, #384b6b 100%);
From Mediterranea (#39636A) to Naval Blue (#384B6B). The two hues are 29° 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 | |
|---|---|---|---|---|---|
| Mediterranea | #39636A | 57, 99, 106 | 189°, 30%, 32% | 46, 7, 0, 58 | |
| 25% (near Under the Sea) | #395D6A | 57, 93, 106 | 196°, 30%, 32% | 46, 12, 0, 58 | |
| 50% (near Under the Sea) | #39576B | 57, 87, 107 | 204°, 30%, 32% | 47, 19, 0, 58 | |
| 75% (near Naval Blue) | #38516B | 56, 81, 107 | 211°, 31%, 32% | 48, 24, 0, 58 | |
| Naval Blue | #384B6B | 56, 75, 107 | 218°, 31%, 32% | 48, 30, 0, 58 |
Halfway along, the gradient is #39576B, closest to the named color Under the Sea. 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.33:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #39636a, #384b6b) - Diagonal:
linear-gradient(135deg, #39636a, #384b6b) - Radial, from the center out:
radial-gradient(circle, #39636a, #384b6b) - Tailwind CSS:
bg-gradient-to-r from-[#39636a] to-[#384b6b]
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 Mediterranea to Naval Blue gradient?
It starts at #39636A (Mediterranea) and ends at #384B6B (Naval Blue), with #39576B in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #39636a, #384b6b) runs from Naval Blue on the left to Mediterranea on the right.