CSS named color

Indigo #4B0082

indigo rgb(75, 0, 130)

Indigo is a dark purple with the hex code #4B0082, which converts to rgb(75, 0, 130). Open #4B0082 in the converter to tweak it.

Indigo color values

HEX#4B0082
HEX (shorthand)—
RGBrgb(75, 0, 130)
RGBArgba(75, 0, 130, 1)
8-digit HEX#4B0082FF
HSLhsl(275, 100%, 25%)
HSV / HSB275°, 100%, 51%
CMYK42%, 100%, 0%, 49%
RGB 0–10.294, 0, 0.51
Decimal4915330
CSS keywordindigo

How #4B0082 converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: 4B → 75, 00 → 0, 82 → 130. That gives rgb(75, 0, 130). The step-by-step guide explains the math.

Shades of Indigo

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of Indigo

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of Indigo on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

Complementary

Analogous

Split-complementary

Triadic

Tetradic (square)

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White Indigo 12.95:1AAA
Black Indigo 1.62:1Fail

Use white text on a indigo background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use Indigo in CSS

.element {
  color: indigo;                         /* keyword */
  background-color: #4B0082;            /* hex */
  border-color: rgb(75 0 130 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #4B008280 is Indigo at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for Indigo?

The CSS named color indigo is #4B0082 in hexadecimal. In CSS you can write color: indigo; or color: #4B0082; — both produce the same pixel.

What is Indigo in RGB?

Indigo is rgb(75, 0, 130): red 75, green 0, blue 130 on the 0–255 scale. As normalized 0–1 floats that is (0.294, 0, 0.51).

Is white or black text more readable on Indigo?

White text is more readable. White on #4B0082 has a contrast ratio of 12.95:1 (AAA), black on #4B0082 has 1.62:1 (Fail). WCAG AA needs 4.5:1 for normal text.

Copied!