Tailwind Indigo 900

indigo-900 · #312E81 · rgb(49, 46, 129)

indigo-900 is a dark blue from the Tailwind CSS default palette, hex code #312E81.

HEX#312E81
RGBrgb(49, 46, 129)
HSLhsl(242, 47%, 34%)
CMYKcmyk(62%, 64%, 0%, 49%)
CSS variable (v4)var(--color-indigo-900)
Color nameBluebell (closest)

Classes

bg-indigo-900
text-indigo-900
border-indigo-900
ring-indigo-900
from-indigo-900 via-indigo-900 to-indigo-900
bg-indigo-900/50   /* 50% opacity */
White text · 11.42:1 · AAA
Black text · 1.84:1 · fails
text-indigo-300 · 5.73:1 · AA

Check contrast with any color →

Tailwind indigo-900: questions & answers

What is the HEX code of Tailwind indigo-900?

Tailwind indigo-900 is #312E81, which is rgb(49, 46, 129) or hsl(242, 47%, 34%).

How do I use indigo-900 as a background in Tailwind?

Add the class bg-indigo-900 to the element. Use text-indigo-900 for text and border-indigo-900 for borders.

What text color works on bg-indigo-900?

indigo-300 (#A5B4FC) is the closest shade of the same color with readable contrast (5.73:1). Plain white text gives 11.42:1.