Tailwind Slate 300

slate-300 · #CBD5E1 · rgb(203, 213, 225)

slate-300 is a very light muted azure from the Tailwind CSS default palette, hex code #CBD5E1.

HEX#CBD5E1
RGBrgb(203, 213, 225)
HSLhsl(213, 27%, 84%)
CMYKcmyk(10%, 5%, 0%, 12%)
CSS variable (v4)var(--color-slate-300)
Color nameLight Gray (closest)

Classes

bg-slate-300
text-slate-300
border-slate-300
ring-slate-300
from-slate-300 via-slate-300 to-slate-300
bg-slate-300/50   /* 50% opacity */
White text · 1.48:1 · fails
Black text · 14.14:1 · AAA
text-slate-600 · 5.1:1 · AA

Check contrast with any color →

Tailwind slate-300: questions & answers

What is the HEX code of Tailwind slate-300?

Tailwind slate-300 is #CBD5E1, which is rgb(203, 213, 225) or hsl(213, 27%, 84%).

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

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

What text color works on bg-slate-300?

slate-600 (#475569) is the closest shade of the same color with readable contrast (5.1:1). Plain black text gives 14.14:1.