Deep Sea Nightmare to The Vast of Night Gradient
CSS
background: linear-gradient(90deg, #002366 0%, #110066 100%);
From Deep Sea Nightmare (#002366) to The Vast of Night (#110066). The two hues are 31° 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 | |
|---|---|---|---|---|---|
| Deep Sea Nightmare | #002366 | 0, 35, 102 | 219°, 100%, 20% | 100, 66, 0, 60 | |
| 25% (near Midnight Melancholia) | #041A66 | 4, 26, 102 | 227°, 92%, 21% | 96, 75, 0, 60 | |
| 50% (near Dying Storm Blue) | #091266 | 9, 18, 102 | 234°, 84%, 22% | 91, 82, 0, 60 | |
| 75% (near Dying Storm Blue) | #0D0966 | 13, 9, 102 | 243°, 84%, 22% | 87, 91, 0, 60 | |
| The Vast of Night | #110066 | 17, 0, 102 | 250°, 100%, 20% | 83, 100, 0, 60 |
Halfway along, the gradient is #091266, closest to the named color Dying Storm 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.18:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #002366, #110066) - Diagonal:
linear-gradient(135deg, #002366, #110066) - Radial, from the center out:
radial-gradient(circle, #002366, #110066) - Tailwind CSS:
bg-gradient-to-r from-[#002366] to-[#110066]
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 Deep Sea Nightmare to The Vast of Night gradient?
It starts at #002366 (Deep Sea Nightmare) and ends at #110066 (The Vast of Night), with #091266 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #002366, #110066) runs from The Vast of Night on the left to Deep Sea Nightmare on the right.