Tailwind Zinc 800

zinc-800 · #27272A · rgb(39, 39, 42)

zinc-800 is a very dark gray from the Tailwind CSS default palette, hex code #27272A.

HEX#27272A
RGBrgb(39, 39, 42)
HSLhsl(240, 4%, 16%)
CMYKcmyk(7%, 7%, 0%, 84%)
CSS variable (v4)var(--color-zinc-800)
Color nameOff Black (closest)

Classes

bg-zinc-800
text-zinc-800
border-zinc-800
ring-zinc-800
from-zinc-800 via-zinc-800 to-zinc-800
bg-zinc-800/50   /* 50% opacity */
White text · 14.89:1 · AAA
Black text · 1.41:1 · fails
text-zinc-400 · 5.81:1 · AA

Check contrast with any color →

Tailwind zinc-800: questions & answers

What is the HEX code of Tailwind zinc-800?

Tailwind zinc-800 is #27272A, which is rgb(39, 39, 42) or hsl(240, 4%, 16%).

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

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

What text color works on bg-zinc-800?

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