Indigo
Indigo is a dark, vivid color from the purple family. Hex code #4B0082.
Color codes
- CSS name
indigo - HEX
#4B0082 - RGB
rgb(75 0 130) - HSL
hsl(275 100% 25%) - HSB / HSV
hsb(275, 100%, 51%) - OKLCH
oklch(33.9% 0.179 301.7) - CMYK
cmyk(42%, 100%, 0%, 49%)
White text
12.95:1 · passes WCAG AAA
Black text
1.62:1 · fails WCAG
Shades
Complementary
Analogous
Triadic
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.
More tools
Work with this color
- Color picker and converterPick a color and get HEX, RGB, HSL, HSB, CMYK and OKLCH, plus shades and harmonies.
- Contrast checkerCheck text and background colors against WCAG AA and AAA, and fix failing ones.
- CSS color namesAll 148 named colors with hex codes, shades, contrast and matching palettes.
- Palette generatorBuild a color palette from harmony rules, with shades and CSS variables.
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.