Intergalactic Cowboy to Fading Horizon Gradient
CSS
background: linear-gradient(90deg, #222266 0%, #442266 100%);
From Intergalactic Cowboy (#222266) to Fading Horizon (#442266). The two hues are 30° 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 | |
|---|---|---|---|---|---|
| Intergalactic Cowboy | #222266 | 34, 34, 102 | 240°, 50%, 27% | 67, 67, 0, 60 | |
| 25% (near Indie Go) | #2B2266 | 43, 34, 102 | 248°, 50%, 27% | 58, 67, 0, 60 | |
| 50% (near Dark Dreams) | #332266 | 51, 34, 102 | 255°, 50%, 27% | 50, 67, 0, 60 | |
| 75% (near Fading Horizon) | #3C2266 | 60, 34, 102 | 263°, 50%, 27% | 41, 67, 0, 60 | |
| Fading Horizon | #442266 | 68, 34, 102 | 270°, 50%, 27% | 33, 67, 0, 60 |
Halfway along, the gradient is #332266, closest to the named color Dark Dreams. 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.12:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #222266, #442266) - Diagonal:
linear-gradient(135deg, #222266, #442266) - Radial, from the center out:
radial-gradient(circle, #222266, #442266) - Tailwind CSS:
bg-gradient-to-r from-[#222266] to-[#442266]
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 Intergalactic Cowboy to Fading Horizon gradient?
It starts at #222266 (Intergalactic Cowboy) and ends at #442266 (Fading Horizon), with #332266 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #222266, #442266) runs from Fading Horizon on the left to Intergalactic Cowboy on the right.