Deep Space Royal to Galactic Civilization Gradient
CSS
background: linear-gradient(90deg, #223382 0%, #442288 100%);
From Deep Space Royal (#223382) to Galactic Civilization (#442288). 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 Space Royal | #223382 | 34, 51, 130 | 229°, 59%, 32% | 74, 61, 0, 49 | |
| 25% (near Intergalactic Highway) | #2B2F84 | 43, 47, 132 | 237°, 51%, 34% | 67, 64, 0, 48 | |
| 50% (near Perfect Dark) | #332B85 | 51, 43, 133 | 245°, 51%, 35% | 62, 68, 0, 48 | |
| 75% (near Galactic Civilization) | #3C2687 | 60, 38, 135 | 254°, 56%, 34% | 56, 72, 0, 47 | |
| Galactic Civilization | #442288 | 68, 34, 136 | 260°, 60%, 33% | 50, 75, 0, 47 |
Halfway along, the gradient is #332B85, closest to the named color Perfect Dark. 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.02:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #223382, #442288) - Diagonal:
linear-gradient(135deg, #223382, #442288) - Radial, from the center out:
radial-gradient(circle, #223382, #442288) - Tailwind CSS:
bg-gradient-to-r from-[#223382] to-[#442288]
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 Space Royal to Galactic Civilization gradient?
It starts at #223382 (Deep Space Royal) and ends at #442288 (Galactic Civilization), with #332B85 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #223382, #442288) runs from Galactic Civilization on the left to Deep Space Royal on the right.