Toolman

Tailwind slate colours

The eleven slate shades in the default Tailwind CSS palette, with the contrast figures that decide which of them you can actually put text on.

Every slate shade

ClassHexRGBOn whiteText colourAs text
slate-50#F8FAFC248, 250, 2521.05:1black
slate-100#F1F5F9241, 245, 2491.1:1black
slate-200#E2E8F0226, 232, 2401.23:1black
slate-300#CBD5E1203, 213, 2251.48:1black
slate-400#94A3B8148, 163, 1842.56:1black
slate-500#64748B100, 116, 1394.76:1whiteAA
slate-600#47556971, 85, 1057.58:1whiteAA
slate-700#33415551, 65, 8510.35:1whiteAA
slate-800#1E293B30, 41, 5914.63:1whiteAA
slate-900#0F172A15, 23, 4217.85:1whiteAA
slate-950#0206172, 6, 2320.17:1whiteAA

"On white" is the contrast ratio against a white page. "As text" is whether that ratio passes WCAG AA for normal text, which needs 4.5:1; large text needs only 3:1.

Where the scale turns over

slate-500 is the lightest shade that reaches 4.5:1 against white, so it is the first one usable for body text on a white page. It is also where a background of this hue stops taking black text and starts needing white — the two thresholds are 4.5:1 and 4.58:1, and on this scale they fall on the same step.

Using slate in Tailwind

<div class="bg-slate-500 text-white">
<p class="text-slate-500">

The text class above is the lightest slate that still passes AA on a white background.

Frequently asked questions

What is the hex code for Tailwind slate-500?

#64748B — RGB 100, 116, 139. Full values and contrast for #64748B.

Which Tailwind slate shades can I use for text?

slate-500, slate-600, slate-700, slate-800, slate-900, slate-950 reach 4.5:1 against white and pass AA for normal text. Anything lighter fails, whatever it looks like on your monitor.

Should text on a slate background be black or white?

Black up to slate-400, white from slate-500 down. The two are never both comfortable: at the crossover neither reaches 4.5:1.

All Tailwind colours · Colour reference