Navy to Indigo Gradient
CSS
background: linear-gradient(90deg, #000080 0%, #4b0082 100%);
From Navy (#000080) to Indigo (#4B0082). The two hues are 35° 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 | |
|---|---|---|---|---|---|---|
| Navy | #000080 | 0, 0, 128 | 240°, 100%, 25% | 100, 100, 0, 50 | 27.1% 0.188 264 | |
| 25% (near Insomniac Blue) | #130081 | 19, 0, 129 | 249°, 100%, 25% | 85, 100, 0, 49 | 28.1% 0.184 270 | |
| 50% (near Orbital Kingdom) | #260081 | 38, 0, 129 | 258°, 100%, 25% | 71, 100, 0, 49 | 29.4% 0.179 280 | |
| 75% (near Galactic Federation) | #380082 | 56, 0, 130 | 266°, 100%, 25% | 57, 100, 0, 49 | 31.4% 0.178 290 | |
| Indigo | #4B0082 | 75, 0, 130 | 275°, 100%, 25% | 42, 100, 0, 49 | 33.9% 0.179 302 |
Halfway along, the gradient is #260081, 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.24:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #000080, #4b0082) - Diagonal:
linear-gradient(135deg, #000080, #4b0082) - Radial, from the center out:
radial-gradient(circle, #000080, #4b0082) - Tailwind CSS:
bg-gradient-to-r from-[#000080] to-[#4b0082]
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 Navy to Indigo gradient?
It starts at #000080 (Navy) and ends at #4B0082 (Indigo), with #260081 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #000080, #4b0082) runs from Indigo on the left to Navy on the right.