About indigo
A deep blue-violet named after the indigo dye plant. This is the CSS indigo. Its hex code is #4B0082, which is rgb(75, 0, 130): 75 red, 0 green and 130 blue on a scale of 0 to 255.
Indigo is a cool color.
Indigo tints and shades
Lighter tints (mixed with white) and darker shades (mixed with black) of indigo. Click any of them to copy its hex code.
Colors that go with indigo
Complementary
The opposite color on the color wheel, for strong contrast.
Analogous
Neighbors on the color wheel, for a calm, matching look.
Triadic
Three colors evenly spaced around the wheel, for a balanced, lively palette.
Split complementary
The two colors either side of the complement: contrast without clashing.
Text on indigo
White text
Black text
For readable text, WCAG asks for a contrast ratio of at least 4.5:1 (3:1 for large text). White text is the better choice on indigo. Test other combinations with the contrast checker.
Using indigo in CSS
.element {
color: #4B0082;
background-color: rgb(75 0 130);
border-color: hsl(275 100% 25%);
}
Frequently asked questions
What is the hex code for indigo?
Indigo is #4B0082. In RGB it's rgb(75, 0, 130), and in HSL it's hsl(275, 100%, 25%).
What colors go with indigo?
Its complementary color is #378200, which gives strong contrast. For a softer look, use analogous colors #0A0082 and #820078. Indigo also pairs well with white.
Is indigo warm or cool?
Indigo is a cool color.
Should I use white or black text on indigo?
Use white text. Its contrast ratio on indigo is 12.95:1, versus 1.62:1 for black.
Similar colors
- Violet#7F00FFrgb(127, 0, 255)
- Purple#800080rgb(128, 0, 128)
- Magenta#FF00FFrgb(255, 0, 255)
- Navy blue#000080rgb(0, 0, 128)
- Mauve#E0B0FFrgb(224, 176, 255)
- Blue#0000FFrgb(0, 0, 255)
See all popular colors · All HTML color names · Open indigo in the color picker