Skip to content

Indigo

Indigo is a dark, vivid color from the purple family. Hex code #4B0082.

Indigo#4B0082

Color codes

  • CSS nameindigo
  • HEX#4B0082
  • RGBrgb(75 0 130)
  • HSLhsl(275 100% 25%)
  • HSB / HSVhsb(275, 100%, 51%)
  • OKLCHoklch(33.9% 0.179 301.7)
  • CMYKcmyk(42%, 100%, 0%, 49%)

White text

12.95:1 · passes WCAG AAA

Black text

1.62:1 · fails WCAG

Shades

50#F4EFFF
100#DDCBFC
200#C7A3FE
300#B27DF8
400#9661D9
500#7C45BC
600#63289E
700#4B0082
800#2F0154

Complementary

#4B0082
#313D06

Analogous

#4B0082
#1F1F92
#5E0758

Triadic

#4B0082
#532D01
#09413A

About this color

Indigo in CSS and design

Indigo is a dark, vivid color from the purple family. Indigo is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.

Use it in CSS by name or by any of its codes; these all give the same color:

color: indigo;
color: #4B0082;
color: rgb(75 0 130);
color: hsl(275 100% 25%);

For text on indigo, white reads best. Check other combinations with the contrast checker, or browse all CSS color names.

Frequently asked questions

What is the hex code for indigo?

#4B0082. In CSS you can also use the keyword indigo, which works in every browser.

What is indigo in RGB and HSL?

In RGB it is rgb(75 0 130), in HSL hsl(275 100% 25%). For print, cmyk(42%, 100%, 0%, 49%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

Should I use black or white text on indigo?

White text works better: it has a contrast ratio of 12.95:1 and passes WCAG AAA. Black text reaches 1.62:1.

Which colors go with indigo?

Its complementary color is #313D06, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #1F1F92 and #5E0758. The palette generator builds more combinations.