Skip to content

Indigo

Hex #4B0082, rgb(75 0 130). A purple CSS named color.

Open in palette generator

Indigo color codes

Click any value to copy it.

HEX
RGB
HSL
HSV
HWB
CMYK
OKLCH
OKLab
Lab
LCH
CSS keyword

About Indigo

Indigo is a dark saturated purple with the hex code #4B0082. In RGB it is made of 75 red, 0 green and 130 blue; in HSL its hue is 275°, with 100% saturation and 25% lightness. Its perceptual lightness (OKLCH L) is 33.9%.

It is a CSS named color, so you can write "indigo" anywhere CSS accepts a color. Against white it has a contrast ratio of 12.95:1 and against black 1.62:1, so white text reads better on it and passes WCAG AA for normal text.

Tints, shades and tones

Indigo mixed step by step with white, black and middle gray (#808080).

Tints (with white)

Shades (with black)

Tones (with gray)

Indigo 50-950 scale

A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.

Colors that go with Indigo

Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.

Complementary

Analogous

Triadic

Split complementary

Tetradic

Monochromatic

Contrast and readability

WCAG 2 contrast of Indigo with white and black. The readable text color on Indigo is white.

Indigo textSmall text on white

On white12.95:1

  • AA pass
  • AA Large pass
  • AAA pass
  • UI 3:1 pass

APCA Lc 97

Indigo textSmall text on black

On black1.62:1

  • AA fail
  • AA Large fail
  • AAA fail
  • UI 3:1 fail

APCA Lc 0

White text on Indigo (#FFFFFF)

Test any pair in the contrast checker.

Color blindness preview

How Indigo appears with each type of color vision deficiency (simulated with the Machado model).

  • Protanopia#003185
  • Deuteranopia#003180
  • Tritanopia#3E2E4A
  • Protanomaly#002984
  • Deuteranomaly#002A81
  • Tritanomaly#481B6D
  • Achromatopsia#313131

Colors similar to Indigo

The closest named colors by perceptual difference (OKLab).

Use Indigo in CSS and Tailwind

CSS
.indigo {
  color: indigo; /* #4B0082 */
  background-color: rgb(75 0 130);
  border-color: oklch(33.9% 0.179 301.7);
}
Tailwind CSS
/* Tailwind CSS v4: bg-indigo-500, text-indigo-700... */
@theme {
  --color-indigo-50: #FBF9FF;
  --color-indigo-100: #F0E9FF;
  --color-indigo-200: #E2D1FF;
  --color-indigo-300: #CCACFF;
  --color-indigo-400: #B274FF;
  --color-indigo-500: #A247FF;
  --color-indigo-600: #9200F5;
  --color-indigo-700: #7500C6;
  --color-indigo-800: #5D009F;
  --color-indigo-900: #4B0082;
  --color-indigo-950: #20003D;
}

<!-- or the exact color, no config -->
<div class="bg-[#4B0082] text-[#FFFFFF]">…</div>