Indigo Color Code (#4b0082)

Indigo is #4b0082 in hex and rgb(75, 0, 130) — a dark purple. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Indigo
#4b0082
CSS nameindigo
Hex#4b0082
RGBrgb(75, 0, 130)
HSLhsl(275 100% 25%)
HWBhwb(275 0% 49%)
CMYK42%, 100%, 0%, 49%

Tints and shades

Color harmonies

About Indigo

Indigo (indigo) is a dark, vivid purple with the hex code #4b0082, or rgb(75, 0, 130). In HSL it sits at a hue of 275°, 100% saturation and 25% lightness. It is one of the 148 named colors every browser understands, so you can write color: indigo; instead of the hex value.

Using Indigo for text and backgrounds

PairingContrast ratioWCAG
Indigo text on white12.95 : 1AAA
Indigo text on black1.62 : 1fails

On a indigo background, use white text (12.95 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: indigo;               /* or #4b0082 */
  background-color: #4b0082;
  border: 1px solid rgb(75 0 130 / 50%);
}

Similar named colors

Purple (#800080), Midnight Blue (#191970), Dark Slate Blue (#483d8b), Rebecca Purple (#663399), Dark Magenta (#8b008b), Navy (#000080).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for indigo?
#4b0082 — that is rgb(75, 0, 130) and hsl(275, 100%, 25%). In CSS you can also just write indigo.
Is indigo text readable on white?
Its contrast ratio on white is 12.95 : 1, which passes WCAG AA for normal text.
What colors go well with indigo?
Its complementary color is #358000; analogous colors #0b0080 and #800075 sit next to it on the color wheel.