Tailwind Slate 400

slate-400 · #94A3B8 · rgb(148, 163, 184)

slate-400 is a light muted azure from the Tailwind CSS default palette, hex code #94A3B8.

HEX#94A3B8
RGBrgb(148, 163, 184)
HSLhsl(215, 20%, 65%)
CMYKcmyk(20%, 11%, 0%, 28%)
CSS variable (v4)var(--color-slate-400)
Color nameCool Grey (closest)

Classes

bg-slate-400
text-slate-400
border-slate-400
ring-slate-400
from-slate-400 via-slate-400 to-slate-400
bg-slate-400/50   /* 50% opacity */
White text · 2.56:1 · fails
Black text · 8.19:1 · AAA
text-slate-800 · 5.71:1 · AA

Check contrast with any color →

Tailwind slate-400: questions & answers

What is the HEX code of Tailwind slate-400?

Tailwind slate-400 is #94A3B8, which is rgb(148, 163, 184) or hsl(215, 20%, 65%).

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

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

What text color works on bg-slate-400?

slate-800 (#1E293B) is the closest shade of the same color with readable contrast (5.71:1). Plain black text gives 8.19:1.