Short answer
Indigo is a deep blue-violet that sits between blue and violet in the rainbow. The name comes from a plant dye used for centuries to color cloth, including denim. On screens, the CSS color indigo is #4B0082, or rgb(75, 0, 130), while traditional dye indigo looks closer to a dark navy blue.
Last verified against the sources listed below.
Key takeaways
- Indigo is a deep blue-violet, between blue and violet.
- The CSS color indigo is #4B0082, a purple-leaning shade.
- Dye indigo, as on denim, looks more like a deep navy blue.
- Isaac Newton named indigo as one of seven rainbow colors.
- The name comes from the Greek for "Indian", after the dye's origin.
Indigo is one of the few color names most people learn from the rainbow and then rarely see again. It is a deep blue-violet, and it shows up in denim, ink, night skies and brand palettes.
| Quick facts | |
|---|---|
| Color family | Blue-violet |
| CSS HEX | #4B0082 |
| RGB | rgb(75, 0, 130) |
| HSL | hsl(275, 100%, 25%) |
| CMYK (approx.) | 42% C, 100% M, 0% Y, 49% K |
| Named after | A plant-based blue dye |
Indigo is a deep blue-violet
Indigo sits between blue and violet on the spectrum. It is darker than royal blue and bluer than purple. People describe it as the color of a night sky shortly after sunset.
Two versions are in common use. The web version, defined as a keyword in the W3C CSS color specification, is #4B0082. It leans clearly toward purple. The dye version, the one on raw denim, looks like a dark, slightly grayish blue.
Indigo in color codes
On screen, indigo has no green, some red and a lot of blue. That mix gives its violet cast.
| Version | HEX | RGB |
|---|---|---|
| CSS indigo | #4B0082 | rgb(75, 0, 130) |
| Indigo dye (reference value) | #091F92 | rgb(9, 31, 146) |
| Electric indigo (common value) | #6F00FF | rgb(111, 0, 255) |
| Navy (for comparison) | #000080 | rgb(0, 0, 128) |
The dye and electric values are reference conventions, not CSS keywords; Wikipedia’s indigo article lists several such variants. Real denim, faded and woven with white threads, usually looks darker and grayer than any single swatch. The Indigo Color Code page gives the CSS value in every format, ready to copy.
Indigo in the rainbow
Isaac Newton added indigo when he split the rainbow into seven colors. His list was red, orange, yellow, green, blue, indigo and violet.
Newton chose seven partly to mirror the seven notes of a musical scale. The band he called indigo is narrow, and many people cannot pick it out as a separate color. For that reason, many modern science teachers describe the rainbow with six colors. The “ROYGBIV” memory aid keeps indigo alive anyway.
Where the name comes from
Indigo is named after a dye, and the dye is named after India. Merriam-Webster traces the word through Latin to the Greek indikon, meaning Indian.
The dye came from plants of the genus Indigofera. The Museum of Fine Arts, Boston’s CAMEO materials database describes it as a natural dark blue dye from Indigofera tinctoria, grown in India, Java, Peru and other tropical areas. It was valuable enough to be traded across continents for centuries.
Most indigo dye today is synthetic. Wikipedia’s indigo dye article notes that synthetic indigo became commercially available in the late 1800s and is now the main dye for blue jeans.
Indigo vs navy, violet and purple
Indigo sits in a crowded part of the wheel, so names get mixed up. This table separates them.
| Color | CSS HEX | How it differs from indigo |
|---|---|---|
| Navy | #000080 | Cooler, pure dark blue |
| Midnight blue | #191970 | Slightly lighter, still blue |
| Indigo | #4B0082 | Blue-violet |
| Dark violet | #9400D3 | Brighter, more purple |
| Purple | #800080 | Balanced red and blue |
If a brand guide just says “indigo”, ask whether it means the denim dye or the CSS value. They look noticeably different side by side.
Using indigo in design
Indigo reads as deep, calm and premium, which makes it a strong base for dark themes and luxury brands. It pairs well with gold, cream, coral and soft gray.
White text on #4B0082 is easy to read and passes common contrast targets. For a full set of related tones, the Color Shades Generator builds an even scale from indigo to near-black.
Mixing indigo paint
Mix ultramarine blue with a small amount of purple or crimson, then darken with a dot of black or burnt umber. Ultramarine already leans slightly violet, so it is the best base.
Start with about 4 parts ultramarine to 1 part purple. Add the darkener last and in tiny amounts. For a denim-style indigo, use less purple and a touch more gray, which gives the slightly faded look of worn jeans.
Frequently asked questions
Is indigo blue or purple?
Indigo sits between the two. It is a deep blue with a violet lean. The CSS version, #4B0082, looks clearly purple on screen, while the traditional dye used on denim looks like a dark blue. Both are called indigo, so check which one a brief means.
What is the HEX code for indigo?
The CSS keyword indigo is #4B0082, which is rgb(75, 0, 130) and hsl(275, 100%, 25%). It converts to roughly 42% cyan, 100% magenta, 0% yellow and 49% black for print. Designers wanting a denim look often pick a darker navy instead.
Why is indigo in the rainbow?
Isaac Newton divided the spectrum into seven colors, including indigo, partly to match the seven notes of a musical scale. Many modern scientists and teachers drop indigo and list six colors, since the band between blue and violet is narrow and hard to see as a separate hue.
What is the difference between indigo and navy?
Navy is a very dark blue with no violet lean; the CSS color navy is #000080. Indigo is slightly warmer and more violet. Side by side, navy looks cooler and indigo looks a little more purple, especially the CSS version of indigo.
Where does the color indigo come from?
It is named after a blue dye made from plants of the genus Indigofera, long grown in India. The word comes through Latin from the Greek indikon, meaning Indian. Today most indigo dye is made synthetically, but the color name stayed.
Sources
- Indigo · Wikipedia, 2026
- Indigo dye · Wikipedia, 2026
- Indigo · Merriam-Webster, 2026
- CSS Color Module Level 4 · W3C, 2026
- Indigo · Museum of Fine Arts, Boston (CAMEO), 2026