Neptune’s Dream to Alone in the Dark Gradient
CSS
background: linear-gradient(90deg, #003368 0%, #000066 100%);
From Neptune’s Dream (#003368) to Alone in the Dark (#000066). 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 | |
|---|---|---|---|---|---|
| Neptune’s Dream | #003368 | 0, 51, 104 | 211°, 100%, 20% | 100, 51, 0, 59 | |
| 25% (near Deep Sea Nightmare) | #002668 | 0, 38, 104 | 218°, 100%, 20% | 100, 63, 0, 59 | |
| 50% (near Midnight Melancholia) | #001A67 | 0, 26, 103 | 225°, 100%, 20% | 100, 75, 0, 60 | |
| 75% (near Alone in the Dark) | #000D67 | 0, 13, 103 | 232°, 100%, 20% | 100, 87, 0, 60 | |
| Alone in the Dark | #000066 | 0, 0, 102 | 240°, 100%, 20% | 100, 100, 0, 60 |
Halfway along, the gradient is #001A67, closest to the named color Midnight Melancholia. 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.40:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #003368, #000066) - Diagonal:
linear-gradient(135deg, #003368, #000066) - Radial, from the center out:
radial-gradient(circle, #003368, #000066) - Tailwind CSS:
bg-gradient-to-r from-[#003368] to-[#000066]
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 Neptune’s Dream to Alone in the Dark gradient?
It starts at #003368 (Neptune’s Dream) and ends at #000066 (Alone in the Dark), with #001A67 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #003368, #000066) runs from Alone in the Dark on the left to Neptune’s Dream on the right.