Everlasting Night to Space Battle Blue Gradient
CSS
background: linear-gradient(90deg, #000099 0%, #440099 100%);
From Everlasting Night (#000099) to Space Battle Blue (#440099). The two hues are 27° 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 | |
|---|---|---|---|---|---|
| Everlasting Night | #000099 | 0, 0, 153 | 240°, 100%, 30% | 100, 100, 0, 40 | |
| 25% (near Everlasting Night) | #110099 | 17, 0, 153 | 247°, 100%, 30% | 89, 100, 0, 40 | |
| 50% (near Dramatic Blue) | #220099 | 34, 0, 153 | 253°, 100%, 30% | 78, 100, 0, 40 | |
| 75% (near Dramatic Blue) | #330099 | 51, 0, 153 | 260°, 100%, 30% | 67, 100, 0, 40 | |
| Space Battle Blue | #440099 | 68, 0, 153 | 267°, 100%, 30% | 56, 100, 0, 40 |
Halfway along, the gradient is #220099, closest to the named color Dramatic 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.17:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #000099, #440099) - Diagonal:
linear-gradient(135deg, #000099, #440099) - Radial, from the center out:
radial-gradient(circle, #000099, #440099) - Tailwind CSS:
bg-gradient-to-r from-[#000099] to-[#440099]
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 Everlasting Night to Space Battle Blue gradient?
It starts at #000099 (Everlasting Night) and ends at #440099 (Space Battle Blue), with #220099 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #000099, #440099) runs from Space Battle Blue on the left to Everlasting Night on the right.