Tailwind Slate 950

slate-950 · #020617 · rgb(2, 6, 23)

slate-950 is a very dark vivid blue from the Tailwind CSS default palette, hex code #020617.

HEX#020617
RGBrgb(2, 6, 23)
HSLhsl(229, 84%, 5%)
CMYKcmyk(91%, 74%, 0%, 91%)
CSS variable (v4)var(--color-slate-950)
Color nameBlack (closest)

Classes

bg-slate-950
text-slate-950
border-slate-950
ring-slate-950
from-slate-950 via-slate-950 to-slate-950
bg-slate-950/50   /* 50% opacity */
White text · 20.17:1 · AAA
Black text · 1.04:1 · fails
text-slate-400 · 7.87:1 · AAA

Check contrast with any color →

Tailwind slate-950: questions & answers

What is the HEX code of Tailwind slate-950?

Tailwind slate-950 is #020617, which is rgb(2, 6, 23) or hsl(229, 84%, 5%).

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

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

What text color works on bg-slate-950?

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