Tailwind Indigo 400

indigo-400 · #818CF8 · rgb(129, 140, 248)

indigo-400 is a light vivid blue from the Tailwind CSS default palette, hex code #818CF8.

HEX#818CF8
RGBrgb(129, 140, 248)
HSLhsl(234, 89%, 74%)
CMYKcmyk(48%, 44%, 0%, 3%)
CSS variable (v4)var(--color-indigo-400)
Color namePeriwinkle (closest)

Classes

bg-indigo-400
text-indigo-400
border-indigo-400
ring-indigo-400
from-indigo-400 via-indigo-400 to-indigo-400
bg-indigo-400/50   /* 50% opacity */
White text · 2.98:1 · fails
Black text · 7.04:1 · AAA
text-indigo-950 · 5.36:1 · AA

Check contrast with any color →

Tailwind indigo-400: questions & answers

What is the HEX code of Tailwind indigo-400?

Tailwind indigo-400 is #818CF8, which is rgb(129, 140, 248) or hsl(234, 89%, 74%).

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

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

What text color works on bg-indigo-400?

indigo-950 (#1E1B4B) is the closest shade of the same color with readable contrast (5.36:1). Plain black text gives 7.04:1.