Swatchproof

Indigo #4B0082

Indigo is one of the named colours in CSS, written indigo. White text reaches 12.95:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keywordindigo
HEX#4B0082
RGBrgb(75 0 130)
HSLhsl(275 100% 25%)
OKLCHoklch(33.9% 0.179 301.7)
White text12.95:1 · body text AA Pass
Black text1.62:1 · body text AA Fail

Colours that go with Indigo

The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Red Violet (#59256A), the nearest, though visibly different. These are the colours Wada paired it with, ranked by their contrast with Indigo itself.

ColourHEXContrast with IndigoBody text AA
Orange Yellow#FCB3157.15:1Pass
Isabella Color#C5A56E5.54:1Pass
Eosine Pink#F37F945.10:1Pass
Cinnamon Rufous#C275443.65:1Fail
Dull Viridian Green#0094653.34:1Fail
Light Mauve#9A72AA3.31:1Fail
Deep Violet / Plumbeous#70727C2.71:1Fail
Scarlet#CB2F432.48:1Fail
Rosolanc Purple#B73F742.45:1Fail
Antwarp Blue#0071902.32:1Fail
Brick Red#A842222.14:1Fail
Veronia Purple#8C4C622.05:1Fail
Violet#4F40861.49:1Fail
Vandyke Red#82241F1.37:1Fail

Palettes with Red Violet

Shades and tints of Indigo

Nine lightness steps in OKLCH that keep the hue of Indigo. Chroma is reduced only where sRGB cannot show it.

:root {
  --indigo-100: #F7F3FF;
  --indigo-200: #EADEFF;
  --indigo-300: #D8C1FF;
  --indigo-400: #C299FF;
  --indigo-500: #A772EC;
  --indigo-600: #8650C7;
  --indigo-700: #6930A6;
  --indigo-800: #4E0686;
  --indigo-900: #2F0054;
}

Text that keeps Indigo on screen

Text #4B0082 on #F7F3FF reaches 11.85:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours