Twilight Express to Explorer of the Galaxies Gradient
CSS
background: linear-gradient(90deg, #1c3378 0%, #3a1f76 100%);
From Twilight Express (#1C3378) to Explorer of the Galaxies (#3A1F76). The two hues are 34° 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 | |
|---|---|---|---|---|---|
| Twilight Express | #1C3378 | 28, 51, 120 | 225°, 62%, 29% | 77, 58, 0, 53 | |
| 25% (near Twilight Express) | #242E78 | 36, 46, 120 | 233°, 54%, 31% | 70, 62, 0, 53 | |
| 50% (near Deep Space Rodeo) | #2B2977 | 43, 41, 119 | 242°, 49%, 31% | 64, 66, 0, 53 | |
| 75% (near Deep Space Rodeo) | #332477 | 51, 36, 119 | 251°, 54%, 30% | 57, 70, 0, 53 | |
| Explorer of the Galaxies | #3A1F76 | 58, 31, 118 | 259°, 58%, 29% | 51, 74, 0, 54 |
Halfway along, the gradient is #2B2977, closest to the named color Deep Space Rodeo. 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.10:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #1c3378, #3a1f76) - Diagonal:
linear-gradient(135deg, #1c3378, #3a1f76) - Radial, from the center out:
radial-gradient(circle, #1c3378, #3a1f76) - Tailwind CSS:
bg-gradient-to-r from-[#1c3378] to-[#3a1f76]
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 Twilight Express to Explorer of the Galaxies gradient?
It starts at #1C3378 (Twilight Express) and ends at #3A1F76 (Explorer of the Galaxies), with #2B2977 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #1c3378, #3a1f76) runs from Explorer of the Galaxies on the left to Twilight Express on the right.