slate-900
#0f172bTailwind CSS v4.3.3 slate-900 is oklch(20.8% 0.042 265.755) in OKLCH, the format Tailwind uses, and #0f172b in HEX.
- Class
- OKLCH
- HEX
- RGB
- HSL
- CSS
Classes
Click to copy. Add /50 for 50% opacity, for example bg-slate-900/50.
Text on slate-900
- Aawhite17.84:1Readable · AA
- Aablack1.18:1Hard to read
- Aaslate-5017.05:1Readable · AA
Most readable text from the slate scale: slate-50
Tailwind slate scale
Step 900 in other Tailwind colors
Questions and answers
What is the hex code of Tailwind slate-900?
slate-900 is #0f172b in HEX, rgb(15 23 43) in RGB and oklch(20.8% 0.042 265.755) in OKLCH. Tailwind CSS v4.3.3 defines its colors in OKLCH, so the HEX value is the closest sRGB match.
Is Tailwind slate-900 accessible for text?
White text on slate-900 has a contrast ratio of 17.84:1 and black text 1.18:1. WCAG AA needs 4.5:1 for normal text and 3:1 for large text, so white text is the better choice here.
How do I use slate-900 in Tailwind CSS?
Add bg-slate-900, text-slate-900 or border-slate-900 to an element. In your own CSS use var(--color-slate-900), the CSS variable Tailwind v4 creates for every color.