100% free no uploads no sign-up

indigo color code

The hex code for indigo is #4B0082, which is rgb(75, 0, 130) in RGB and cmyk(42%, 100%, 0%, 49%) in CMYK. It's a dark, vivid purple. It is a built-in CSS colour, so you can also write it as “indigo”.

#4B0082indigo
White text: 12.95:1 ✓ AABlack text: 1.62:1 ✗Nearest name: indigo

Move the sliders to find a lighter, darker or softer indigo; the codes update as you go.

Indigo colour codes

HEX#4B0082
RGBrgb(75, 0, 130)
HSLhsl(275, 100%, 25%)
HSV / HSBhsv(275, 100%, 51%)
CMYKcmyk(42%, 100%, 0%, 49%)
Decimal4915330
CSS keywordindigo

About indigo

Indigo sits at a hue of 275° on the colour wheel, with 100% saturation and 25% lightness. That makes it a colour that sits between warm and cool: greens and purples like this can be styled warm or cool depending on what you put next to them.

Named after the indigo dye from the Indigofera plant.

For text, white reads better on indigo. Indigo as text on a white background has a contrast ratio of 12.95:1, which passes the WCAG AA rule for body text (4.5:1). On black it is 1.62:1, which fails AA for body text.

Tints and shades of indigo

Tints mix indigo with white and shades mix it with black, in 10% steps. They're the easiest way to get lighter backgrounds and darker hover or text colours that still match.

#EDE6F3#DBCCE6#C9B3DA#B799CD#A580C1#9366B4#814DA8#6F339B#5D1A8F
indigo #4B0082
#440075#3C0068#35005B#2D004E#260041#1E0034#170027#0F001A#08000D

Colours that go with indigo

Complementary — opposite on the colour wheel: maximum contrast

#4B0082#378200

Analogous — neighbours 30° either side: calm and natural

#0A0082#4B0082#820078

Triadic — three hues 120° apart: lively but balanced

#4B0082#824B00#00824B

Split complementary — the two neighbours of the complement: contrast with less tension

#4B0082#788200#00820A

Tetradic — four hues 90° apart: rich, use one as the main colour

#4B0082#820A00#378200#007882

Indigo text contrast

CombinationRatioAA normal (4.5:1)AA large (3:1)AAA (7:1)
indigo on white12.95:1passpasspass
indigo on black1.62:1failfailfail

Check indigo against any other colour in the contrast checker.

How indigo looks with colour blindness

Simulated with the Machado et al. (2009) model for the complete loss of one type of cone cell. Colour vision deficiency affects roughly 1 in 12 men and 1 in 200 women, most often as red-green colour blindness.

normal #4B0082protanopia #003285deuteranopia #003180tritanopia #3E2E4A

Use indigo in code

.indigo {
  color: indigo;
  background-color: #4b0082;
  border-color: rgb(75, 0, 130);
}

Frequently asked questions

What is the hex code for indigo?

Indigo is #4B0082 (lowercase #4b0082). It's the official value of the CSS keyword “indigo”.

What is indigo in RGB, HSL and CMYK?

RGB: rgb(75, 0, 130). HSL: hsl(275, 100%, 25%). CMYK: cmyk(42%, 100%, 0%, 49%). CMYK is a simple conversion for reference; for professional printing, ask your printer for a matching ink or Pantone swatch.

What colours go with indigo?

Its complementary colour is #378200 (close to green), which gives the strongest contrast. For a calmer look, use the analogous colours #0A0082 and #820078, or the triadic pair #824B00 and #00824B. Tints and shades of indigo itself always work together.

Is indigo a warm or cool colour?

Indigo has a hue of 275°, which makes it neither clearly warm nor cool.

Should I use black or white text on indigo?

White. Black text on indigo has a contrast ratio of 1.62:1 and white text has 12.95:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.

How do I use indigo in CSS?

Write color: indigo; or color: #4b0082; — both give the same colour. Named colours work in every browser.

Colours similar to indigo