Dark Blue (CSS) to Indigo Static Gradient
CSS
background: linear-gradient(90deg, #00008b 0%, #4b0183 100%);
From Dark Blue (CSS) (#00008B) to Indigo Static (#4B0183). 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 | OKLCH | |
|---|---|---|---|---|---|---|
| Dark Blue (CSS) | #00008B | 0, 0, 139 | 240°, 100%, 27% | 100, 100, 0, 45 | 28.8% 0.199 264 | |
| 25% (near Orbital Kingdom) | #130089 | 19, 0, 137 | 248°, 100%, 27% | 86, 100, 0, 46 | 29.2% 0.192 269 | |
| 50% (near Orbital Kingdom) | #260187 | 38, 1, 135 | 257°, 99%, 27% | 72, 99, 0, 47 | 30.3% 0.185 278 | |
| 75% (near Galactic Federation) | #380185 | 56, 1, 133 | 265°, 99%, 26% | 58, 99, 0, 48 | 31.9% 0.180 289 | |
| Indigo Static | #4B0183 | 75, 1, 131 | 274°, 98%, 26% | 43, 99, 0, 49 | 34.1% 0.180 301 |
Halfway along, the gradient is #260187, closest to the named color Orbital Kingdom. 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.19:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #00008b, #4b0183) - Diagonal:
linear-gradient(135deg, #00008b, #4b0183) - Radial, from the center out:
radial-gradient(circle, #00008b, #4b0183) - Tailwind CSS:
bg-gradient-to-r from-[#00008b] to-[#4b0183]
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 Dark Blue (CSS) to Indigo Static gradient?
It starts at #00008B (Dark Blue (CSS)) and ends at #4B0183 (Indigo Static), with #260187 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #00008b, #4b0183) runs from Indigo Static on the left to Dark Blue (CSS) on the right.