Plunge to Midnight Melancholia Gradient
CSS
background: linear-gradient(90deg, #035568 0%, #002266 100%);
From Plunge (#035568) to Midnight Melancholia (#002266). 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 | |
|---|---|---|---|---|---|
| Plunge | #035568 | 3, 85, 104 | 191°, 94%, 21% | 97, 18, 0, 59 | |
| 25% (near Raging Thunderstorm) | #024868 | 2, 72, 104 | 199°, 96%, 21% | 98, 31, 0, 59 | |
| 50% (near Lost in Space) | #023C67 | 2, 60, 103 | 206°, 96%, 21% | 98, 42, 0, 60 | |
| 75% (near Neptune’s Dream) | #012F67 | 1, 47, 103 | 213°, 98%, 20% | 99, 54, 0, 60 | |
| Midnight Melancholia | #002266 | 0, 34, 102 | 220°, 100%, 20% | 100, 67, 0, 60 |
Halfway along, the gradient is #023C67, closest to the named color Lost in Space. 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.76:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #035568, #002266) - Diagonal:
linear-gradient(135deg, #035568, #002266) - Radial, from the center out:
radial-gradient(circle, #035568, #002266) - Tailwind CSS:
bg-gradient-to-r from-[#035568] 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 Plunge to Midnight Melancholia gradient?
It starts at #035568 (Plunge) and ends at #002266 (Midnight Melancholia), with #023C67 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #035568, #002266) runs from Midnight Melancholia on the left to Plunge on the right.