indigo-900
#312c85Tailwind CSS v4.3.3 indigo-900 is oklch(35.9% 0.144 278.697) in OKLCH, the format Tailwind uses, and #312c85 in HEX.
- Class
- OKLCH
- HEX
- RGB
- HSL
- CSS
Classes
Click to copy. Add /50 for 50% opacity, for example bg-indigo-900/50.
Text on indigo-900
- Aawhite11.47:1Readable · AA
- Aablack1.83:1Hard to read
- Aaindigo-5010.26:1Readable · AA
Most readable text from the indigo scale: indigo-50
Tailwind indigo scale
Step 900 in other Tailwind colors
Questions and answers
What is the hex code of Tailwind indigo-900?
indigo-900 is #312c85 in HEX, rgb(49 44 133) in RGB and oklch(35.9% 0.144 278.697) in OKLCH. Tailwind CSS v4.3.3 defines its colors in OKLCH, so the HEX value is the closest sRGB match.
Is Tailwind indigo-900 accessible for text?
White text on indigo-900 has a contrast ratio of 11.47:1 and black text 1.83:1. WCAG AA needs 4.5:1 for normal text and 3:1 for large text, so white text is the better choice here.
How do I use indigo-900 in Tailwind CSS?
Add bg-indigo-900, text-indigo-900 or border-indigo-900 to an element. In your own CSS use var(--color-indigo-900), the CSS variable Tailwind v4 creates for every color.