Sea Creature to Midnight Melancholia Gradient
CSS
background: linear-gradient(90deg, #00586d 0%, #002266 100%);
From Sea Creature (#00586D) to Midnight Melancholia (#002266). The two hues are 28° 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 | |
|---|---|---|---|---|---|
| Sea Creature | #00586D | 0, 88, 109 | 192°, 100%, 21% | 100, 19, 0, 57 | |
| 25% (near Raging Thunderstorm) | #004B6B | 0, 75, 107 | 198°, 100%, 21% | 100, 30, 0, 58 | |
| 50% (near Tardis Blue) | #003D6A | 0, 61, 106 | 205°, 100%, 21% | 100, 42, 0, 58 | |
| 75% (near Neptune’s Dream) | #003068 | 0, 48, 104 | 212°, 100%, 20% | 100, 54, 0, 59 | |
| Midnight Melancholia | #002266 | 0, 34, 102 | 220°, 100%, 20% | 100, 67, 0, 60 |
Halfway along, the gradient is #003D6A, closest to the named color Tardis Blue. 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.84:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #00586d, #002266) - Diagonal:
linear-gradient(135deg, #00586d, #002266) - Radial, from the center out:
radial-gradient(circle, #00586d, #002266) - Tailwind CSS:
bg-gradient-to-r from-[#00586d] to-[#002266]
Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.
Related gradients
Questions
What are the HEX codes of the Sea Creature to Midnight Melancholia gradient?
It starts at #00586D (Sea Creature) and ends at #002266 (Midnight Melancholia), with #003D6A in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #00586d, #002266) runs from Midnight Melancholia on the left to Sea Creature on the right.