Skip to main content

bg-zinc-800

Tailwind Zinc 800

#27272A·Zinc family·Shade 800

Color Values

HEX
#27272A
RGB
rgb(39, 39, 42)
HSL
hsl(240, 4%, 16%)
OKLCH
oklch(0.274 0.005 286)
CMYK
cmyk(7%, 7%, 0%, 84%)
CSS Variable
var(--color-zinc-800)
Tailwind Class
bg-zinc-800

Accessibility Score

60/100

Good

Based on WCAG 2.1 contrast ratios against white and black backgrounds.

On White

14.89:1

AAA

On Black

1.41:1

Fail
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-zinc-800

Text

text-zinc-800

Border

border-zinc-800

Ring

ring-zinc-800

Outline

outline-zinc-800

Fill

fill-zinc-800

Stroke

stroke-zinc-800

From (gradient)

from-zinc-800

Via (gradient)

via-zinc-800

To (gradient)

to-zinc-800

Placeholder

placeholder-zinc-800

Caret

caret-zinc-800

Accent

accent-zinc-800

Decoration

decoration-zinc-800

Shadow Color

shadow-zinc-800

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'zinc-800': '#27272a', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #27272A;

/* RGB */
background-color: rgb(39, 39, 42);

/* HSL */
background-color: hsl(240, 4%, 16%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.274 0.005 286);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-zinc-800);

/* Gradient example */
background: linear-gradient(135deg, #fafafa 0%, #18181b 100%);

OKLCH — Modern Color Space

Lightness (L)

0.274

27% perceived brightness

Chroma (C)

0.005

Color intensity / saturation

Hue (H)

286°

Angle on perceptual hue wheel

oklch(0.274 0.005 286)

OKLCH is a perceptually uniform color space in CSS Color Level 4. Unlike HSL, equal steps in L produce equal perceived lightness changes — making it ideal for building accessible, harmonious design system scales.

Design Recommendations

Deep tone for text & UI

Shade 800 of the Zinc palette

Recommended Uses

  • Heading text on white
  • Icon fills on light backgrounds
  • Dark sidebar fills
  • Strong badge colors
  • Section dividers

Avoid

On colored or dark backgrounds — check contrast ratio first.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #27272A

Frequently Asked Questions

What is the hex code for Tailwind Zinc 800?
Tailwind Zinc 800 has the hex code #27272A. Its RGB value is rgb(39, 39, 42) and its HSL value is hsl(240, 4%, 16%).
What Tailwind utility classes use Zinc 800?
Use bg-zinc-800 for backgrounds, text-zinc-800 for text color, border-zinc-800 for borders, and ring-zinc-800 for focus rings. In Tailwind v4 the CSS variable var(--color-zinc-800) is available natively.
Is Tailwind Zinc 800 WCAG accessible?
Tailwind Zinc 800 achieves a 14.89:1 contrast ratio on white (AAA) and 1.41:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Zinc 800?
Tailwind Zinc 800 in OKLCH is oklch(0.274 0.005 286) — lightness 0.274, chroma 0.005, hue 286°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Zinc 800 used for?
At shade 800, Tailwind Zinc 800 is best described as "Deep tone for text & UI". Recommended uses: Heading text on white, Icon fills on light backgrounds, Dark sidebar fills.