Tailwind Zinc 900

zinc-900 · #18181B · rgb(24, 24, 27)

zinc-900 is a very dark black from the Tailwind CSS default palette, hex code #18181B.

HEX#18181B
RGBrgb(24, 24, 27)
HSLhsl(240, 6%, 10%)
CMYKcmyk(11%, 11%, 0%, 89%)
CSS variable (v4)var(--color-zinc-900)
Color nameCocoa Brown (closest)

Classes

bg-zinc-900
text-zinc-900
border-zinc-900
ring-zinc-900
from-zinc-900 via-zinc-900 to-zinc-900
bg-zinc-900/50   /* 50% opacity */
White text · 17.72:1 · AAA
Black text · 1.19:1 · fails
text-zinc-400 · 6.91:1 · AA

Check contrast with any color →

Tailwind zinc-900: questions & answers

What is the HEX code of Tailwind zinc-900?

Tailwind zinc-900 is #18181B, which is rgb(24, 24, 27) or hsl(240, 6%, 10%).

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

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

What text color works on bg-zinc-900?

zinc-400 (#A1A1AA) is the closest shade of the same color with readable contrast (6.91:1). Plain white text gives 17.72:1.