Indigo hex and RGB values
The CSS keyword indigo gives you #4B0082, or rgb(75, 0, 130).
Indigo can anchor a pale lavender panel with dark violet text. Preview both a paragraph and a heading to see how the same pair works at different sizes.
Compare black and white text
| Text / background | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| #000000 / #4B0082 | 1.62:1 | Fail | Fail | Fail | Fail |
| #FFFFFF / #4B0082 | 12.95:1 | Pass | Pass | Pass | Pass |
White text has the higher contrast on indigo: 12.95:1. The table compares both options against all four text thresholds, using the unrounded values for pass or fail.
Try indigo in a layout
The CSS sample below uses white text on #4B0082. Preview a 16 px label and a 24 px heading to compare normal and large text. Swap the colors to try indigo as the text color; the ratio stays the same.
.sample {
background: #4B0082;
color: #FFFFFF;
}Copy the exact color
Use the converter to copy HEX, RGB or HSL. If you edit in HSL, the final value is rounded to eight-bit sRGB so the preview and exported color agree. For text over an image, gradient or translucent layer, check the finished design separately.