Hyper Blue to Space Exploration Gradient
CSS
background: linear-gradient(90deg, #015f97 0%, #001199 100%);
From Hyper Blue (#015F97) to Space Exploration (#001199). 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 | |
|---|---|---|---|---|---|
| Hyper Blue | #015F97 | 1, 95, 151 | 202°, 99%, 30% | 99, 37, 0, 41 | |
| 25% (near Pacific Depths) | #014C98 | 1, 76, 152 | 210°, 99%, 30% | 99, 50, 0, 40 | |
| 50% (near Smalt) | #013898 | 1, 56, 152 | 218°, 99%, 30% | 99, 63, 0, 40 | |
| 75% (near Space Dust) | #002599 | 0, 37, 153 | 225°, 100%, 30% | 100, 76, 0, 40 | |
| Space Exploration | #001199 | 0, 17, 153 | 233°, 100%, 30% | 100, 89, 0, 40 |
Halfway along, the gradient is #013898, closest to the named color Smalt. 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 2.00:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #015f97, #001199) - Diagonal:
linear-gradient(135deg, #015f97, #001199) - Radial, from the center out:
radial-gradient(circle, #015f97, #001199) - Tailwind CSS:
bg-gradient-to-r from-[#015f97] to-[#001199]
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 Hyper Blue to Space Exploration gradient?
It starts at #015F97 (Hyper Blue) and ends at #001199 (Space Exploration), with #013898 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #015f97, #001199) runs from Space Exploration on the left to Hyper Blue on the right.