Spacescape to Stormy Night Gradient
CSS
background: linear-gradient(90deg, #222255 0%, #372354 100%);
From Spacescape (#222255) to Stormy Night (#372354). The two hues are 24° 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 | |
|---|---|---|---|---|---|
| Spacescape | #222255 | 34, 34, 85 | 240°, 43%, 23% | 60, 60, 0, 67 | |
| 25% (near Spacescape) | #272255 | 39, 34, 85 | 246°, 43%, 23% | 54, 60, 0, 67 | |
| 50% (near Pāua) | #2D2355 | 45, 35, 85 | 252°, 42%, 24% | 47, 59, 0, 67 | |
| 75% (near Stormy Night) | #322354 | 50, 35, 84 | 258°, 41%, 23% | 40, 58, 0, 67 | |
| Stormy Night | #372354 | 55, 35, 84 | 264°, 41%, 23% | 35, 58, 0, 67 |
Halfway along, the gradient is #2D2355, closest to the named color Pāua. 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.07:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #222255, #372354) - Diagonal:
linear-gradient(135deg, #222255, #372354) - Radial, from the center out:
radial-gradient(circle, #222255, #372354) - Tailwind CSS:
bg-gradient-to-r from-[#222255] to-[#372354]
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 Spacescape to Stormy Night gradient?
It starts at #222255 (Spacescape) and ends at #372354 (Stormy Night), with #2D2355 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #222255, #372354) runs from Stormy Night on the left to Spacescape on the right.