Indigo color: hex #4b0082, RGB and HSL
Indigo is the CSS keyword indigo, hex #4b0082, rgb(75, 0, 130), hsl(275, 100%, 25%). It is a dark, fully saturated violet in the purples family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.
- CSS name
- indigo
- Hex
- #4b0082
- RGB
- rgb(75, 0, 130)
- HSL
- hsl(275, 100%, 25%)
- On white
- 12.95:1 — passes AA for body text
- On black
- 1.62:1 — fails AA; use as a fill, not text
.example {
color: indigo; /* keyword */
color: #4b0082; /* hex */
color: rgb(75, 0, 130); /* rgb */
color: hsl(275, 100%, 25%); /* hsl */
}What colors go with indigo
Each match keeps indigo's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside indigo as the primary; the harmony guides explain which rule suits which interface.
Complementary
The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.
Split-complementary
The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.
Triadic
Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.
Analogous
The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.
Tints and shades of indigo
Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as indigo — these are the hover, pressed, disabled and surface variants a single brand color needs.
Tints (lighter)
Shades (darker)
A UI color palette built from indigo
The eight semantic roles an interface actually uses, derived from indigo as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.
- primary
- #4b0082
- secondary
- #788200
- accent
- #00820a
- background
- #fdfcfd
- surface
- #f5f3f7
- text
- #1b1122
- muted
- #77568f
- border
- #e6dfec
- primary
- #9e1aff
- secondary
- #edff1a
- accent
- #1aff2b
- background
- #150e1b
- surface
- #201528
- text
- #f5f3f6
- muted
- #a894b8
- border
- #3b2749
Using indigo in an interface
Purple is the hue most SaaS products have settled on for a primary — it is distinct from the blues of links and the reds and greens of status. The slate blues and indigo make dependable primaries; the light lavenders make tinted surfaces that still read as brand. Whichever role indigo takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.
- What is the hex code for Indigo?
- Indigo is #4b0082. In CSS the keyword indigo, the hex #4b0082, rgb(75, 0, 130) and hsl(275, 100%, 25%) all paint the same color.
- What colors go with Indigo?
- Its complement is #378200, the split-complementary pair is #788200 and #00820a, the triadic partners are #824b00 and #00824b, and the analogous neighbors are #0a0082 and #820078. In an interface, use Indigo for most colored elements and one of these for a single accent, at roughly an 80/20 split.
- What is the opposite of Indigo on the color wheel?
- The opposite (complementary) color is #378200, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
- Can I use Indigo for text?
- Indigo as text on white has a contrast ratio of 12.95:1, which passes WCAG AA for body text (4.5:1). On black it is 1.62:1, which fails for body text. It works as a text color on light surfaces.