Indigo color #4B0082
rgb(75, 0, 130) · oklch(33.9% 0.179 301.7)
Indigo (#4B0082) is a dark, vivid, cool purple. It mixes 29% red, 0% green and 51% blue, with a perceived lightness of 33.9% in OKLCH. White text reads best on it (12.95:1 vs 1.62:1). The closest other CSS color is Midnight Blue (#191970). For people with protanopia it shifts the most, toward #003185.
Indigo color codes
| HEX | |
|---|---|
| RGB | |
| HSL | |
| HSV / HSB | |
| OKLCH | |
| CMYK | |
| CSS keyword |
Click a value to copy it. Convert any other color with the color converter.
Shades, tints and tones of indigo
Shades mix indigo with black, tints mix it with white, and tones mix it with gray. Mixing happens in OKLab, so the steps look evenly spaced.
Tints (lighter)
Shades (darker)
Tones (muted)
Indigo as a UI color scale (50–950)
An 11-step scale for design systems, with indigo placed at step 900. Copy it as a Tailwind v4 theme below.
Colors that go with indigo
Harmonies are computed on the OKLCH hue wheel, keeping indigo’s lightness and saturation where the sRGB gamut allows. Open any row in the palette generator to adjust it.
Complementary
EditThe base color and the hue directly opposite it. Maximum contrast; use one as the accent.
Split complementary
EditThe base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.
Tetradic (rectangle)
EditTwo complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.
Is indigo accessible? Contrast with white and black
12.95:1
AA pass AA large pass AAA pass
1.62:1
AA fail AA large fail AAA fail
- As a background, indigo works best with white text.
- For body text on black, use the lighter variant .
How indigo looks with color blindness
Simulated with the Machado et al. (2009) model. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency.
#003185 Red-blind. Reds look dark and brownish; red and green are easily confused.
#003180 Green-blind, the most common strong form. Red, green, orange and brown look similar.
#3e2e4a Blue-blind and rare. Blue and green are confused, as are yellow and pink.
#313131 Total color blindness, very rare. Only lightness differences are visible.
Colors similar to indigo
The closest CSS named colors by perceptual distance (ΔE OK; under 2 is hard to tell apart).
Use indigo in CSS and Tailwind
CSS custom properties
:root {
--indigo: #4b0082;
--indigo-rgb: 75 0 130;
}
.text-indigo { color: var(--indigo); }
.bg-indigo { background-color: var(--indigo); }
Tailwind v4 theme
@theme {
--color-indigo-50: #f7f6f8;
--color-indigo-100: #eeecf1;
--color-indigo-200: #ded7eb;
--color-indigo-300: #cab5ed;
--color-indigo-400: #b586f6;
--color-indigo-500: #a44eff;
--color-indigo-600: #9100f4;
--color-indigo-700: #721bbc;
--color-indigo-800: #57228c;
--color-indigo-900: #4b0082;
--color-indigo-950: #26153a;
}
Make a gradient from indigo: open the gradient generator.
Painting in Procreate or designing in Photoshop? See our palette packs: every color with HEX codes is free to browse, and the swatch files are a quick download.