Indigo
Indigo is a dark, vivid color from the purple family. Hex code #4B0082.
Indigo color codes
- CSS name
indigo - HEX
#4B0082 - RGB
rgb(75, 0, 130) - HSL
hsl(275, 100%, 25%) - OKLCH
oklch(33.9% 0.179 301.7)
HSB and CMYK values
- HSB / HSV
hsb(275, 100%, 51%) - CMYK
C42 M100 Y0 K49
White text
12.95:1 · passes WCAG AAA
Black text
1.62:1 · fails WCAG
Shades of indigo
A lighter shade of indigo is #7C45BC (500).
Colors that go with indigo
Complementary
Analogous
Triadic
The complementary color of indigo is #378200, close to forest green.
Click a color to copy its hex code.
Colors similar to indigo
- Midnight blue#191970
Darker, more blue, more muted
- Dark slate blue#483D8B
Lighter, more blue, more muted
- Rebecca purple#663399
Lighter
- Purple#800080
Lighter, more pink
- Dark blue#00008B
Darker, more blue
- Navy#000080
Darker, more blue
Each compared with indigo.
About this color
Indigo in CSS and design
Indigo is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same indigo:
color: indigo;
color: #4B0082;
color: rgb(75, 0, 130);
color: hsl(275, 100%, 25%);What to know about indigo
Indigo is named after the dye, from Greek indikon, 'Indian (dye)'. Merriam-Webster defines indigo as a deep reddish blue, but CSS indigo (#4B0082) is more of a dark violet: its hue is about 275°, past blue toward purple. White text on it reaches 12.95:1.
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) and in HSL hsl(275, 100%, 25%). In CMYK it is about C42 M100 Y0 K49, though printed colors vary with paper and ink.
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.
What is the complementary color of indigo?
#378200, close to forest green. It sits opposite indigo on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with indigo?
For strong contrast, pair it with its complementary color #378200. For a calmer look, combine it with its analogous neighbors #0A0082 and #820078. The palette generator builds more combinations.