Tailwind Slate 900

slate-900 · #0F172A · rgb(15, 23, 42)

slate-900 is a very dark azure from the Tailwind CSS default palette, hex code #0F172A.

HEX#0F172A
RGBrgb(15, 23, 42)
HSLhsl(222, 47%, 11%)
CMYKcmyk(64%, 45%, 0%, 84%)
CSS variable (v4)var(--color-slate-900)
Color nameDark Navy (closest)

Classes

bg-slate-900
text-slate-900
border-slate-900
ring-slate-900
from-slate-900 via-slate-900 to-slate-900
bg-slate-900/50   /* 50% opacity */
White text · 17.85:1 · AAA
Black text · 1.18:1 · fails
text-slate-400 · 6.96:1 · AA

Check contrast with any color →

Tailwind slate-900: questions & answers

What is the HEX code of Tailwind slate-900?

Tailwind slate-900 is #0F172A, which is rgb(15, 23, 42) or hsl(222, 47%, 11%).

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

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

What text color works on bg-slate-900?

slate-400 (#94A3B8) is the closest shade of the same color with readable contrast (6.96:1). Plain white text gives 17.85:1.