Stargazer to Genie Gradient
CSS
background: linear-gradient(90deg, #3f5865 0%, #3e4364 100%);
From Stargazer (#3F5865) to Genie (#3E4364). The two hues are 32° 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 | |
|---|---|---|---|---|---|
| Stargazer | #3F5865 | 63, 88, 101 | 201°, 23%, 32% | 38, 13, 0, 60 | |
| 25% (near Into the Stratosphere) | #3F5365 | 63, 83, 101 | 208°, 23%, 32% | 38, 18, 0, 60 | |
| 50% (near Into the Stratosphere) | #3F4E65 | 63, 78, 101 | 216°, 23%, 32% | 38, 23, 0, 60 | |
| 75% (near Bonne Nuit) | #3E4864 | 62, 72, 100 | 224°, 23%, 32% | 38, 28, 0, 61 | |
| Genie | #3E4364 | 62, 67, 100 | 232°, 23%, 32% | 38, 33, 0, 61 |
Halfway along, the gradient is #3F4E65, closest to the named color Into the Stratosphere. 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.28:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #3f5865, #3e4364) - Diagonal:
linear-gradient(135deg, #3f5865, #3e4364) - Radial, from the center out:
radial-gradient(circle, #3f5865, #3e4364) - Tailwind CSS:
bg-gradient-to-r from-[#3f5865] to-[#3e4364]
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 Stargazer to Genie gradient?
It starts at #3F5865 (Stargazer) and ends at #3E4364 (Genie), with #3F4E65 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #3f5865, #3e4364) runs from Genie on the left to Stargazer on the right.