Indigo Color Code: Hex #4B0082
The hex code for Indigo is #4B0082 (the CSS keyword indigo). Indigo RGB code: rgb(75, 0, 130). The xkcd color survey gives #380282 instead, which looks slightly different; both codes are below with their source.
#4B0082Top: the code browsers use#380282Below: compare edge to edgeIndigo color codes: each Indigo hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 3 color lists; they look slightly different
- Family
- purple
- Contrast
- 12.95:1 with white, 1.62:1 with black
- CSS keyword
- indigo
- Character
- very dark, vivid
- Readable text on it
- white (AA)
In Early Modern English, indigo meant the dye rather than the hue itself; its first known use as a color name in English dates from 1289.
A very dark, vivid purple with a cool cast. In code, indigo gives exactly this web value. If you mean the color as people usually picture the name, the survey value #380282 is closer: it is darker and about as saturated.
White text reads best on it; black text does not pass WCAG AA. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Dark Blue, its closest named neighbour, it looks lighter, more muted and warmer; beside Navy it looks lighter, about as saturated and warmer. It is one of the darkest of the purple family here.
Colors that go with Indigo
Complementary: the opposite of Indigo
#4B0082White text 12.95:1#313E00White text 11.54:1#967CBDBlack text 5.91:1#1A2200White text 16.50:1
Analogous
#1F1F92White text 12.58:1#4B0082White text 12.95:1#60005AWhite text 12.77:1#B19FD0Black text 8.74:1
Triadic
#4B0082White text 12.95:1#542D00White text 11.98:1#00423AWhite text 11.41:1#CEC3E2Black text 12.53:1
Monochrome
#0E0020White text 20.20:1#2B004EWhite text 17.32:1#4B0082White text 12.95:1#7C5AAAWhite text 5.38:1#B19FD0Black text 8.74:1
With neutrals
#4B0082White text 12.95:1#CEC3E2Black text 12.53:1#04000BWhite text 20.79:1#6F6284White text 5.59:1
Preview
Heading on Indigo
Body text on this color, 12.95:1.
ButtonHeading in Indigo
Text in this color on white, 12.95:1.
ButtonTints and shades
#CEC3E2#B19FD0#967CBD#7C5AAA#623696#4B0082#3B0068#2B004E#1C0036#0E0020#04000B
WhiteIndigoBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “Indigo (color)” (checked 3 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: