Skip to main content

bg-zinc-900

Tailwind Zinc 900

#18181B·Zinc family·Shade 900

Color Values

HEX
#18181B
RGB
rgb(24, 24, 27)
HSL
hsl(240, 6%, 10%)
OKLCH
oklch(0.210 0.006 286)
CMYK
cmyk(11%, 11%, 0%, 89%)
CSS Variable
var(--color-zinc-900)
Tailwind Class
bg-zinc-900

Accessibility Score

60/100

Good

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

On White

17.72:1

AAA

On Black

1.19:1

Fail
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-zinc-900

Text

text-zinc-900

Border

border-zinc-900

Ring

ring-zinc-900

Outline

outline-zinc-900

Fill

fill-zinc-900

Stroke

stroke-zinc-900

From (gradient)

from-zinc-900

Via (gradient)

via-zinc-900

To (gradient)

to-zinc-900

Placeholder

placeholder-zinc-900

Caret

caret-zinc-900

Accent

accent-zinc-900

Decoration

decoration-zinc-900

Shadow Color

shadow-zinc-900

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'zinc-900': '#18181b', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #18181B;

/* RGB */
background-color: rgb(24, 24, 27);

/* HSL */
background-color: hsl(240, 6%, 10%);

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

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

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

OKLCH — Modern Color Space

Lightness (L)

0.210

21% perceived brightness

Chroma (C)

0.006

Color intensity / saturation

Hue (H)

286°

Angle on perceptual hue wheel

oklch(0.210 0.006 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

Strong dark tone

Shade 900 of the Zinc palette

Recommended Uses

  • Body text on white
  • Dark panel backgrounds
  • Near-dark UI elements
  • Footer backgrounds
  • High-contrast headings

Avoid

On dark backgrounds — contrast will be insufficient.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #18181B

Frequently Asked Questions

What is the hex code for Tailwind Zinc 900?
Tailwind Zinc 900 has the hex code #18181B. Its RGB value is rgb(24, 24, 27) and its HSL value is hsl(240, 6%, 10%).
What Tailwind utility classes use Zinc 900?
Use bg-zinc-900 for backgrounds, text-zinc-900 for text color, border-zinc-900 for borders, and ring-zinc-900 for focus rings. In Tailwind v4 the CSS variable var(--color-zinc-900) is available natively.
Is Tailwind Zinc 900 WCAG accessible?
Tailwind Zinc 900 achieves a 17.72:1 contrast ratio on white (AAA) and 1.19:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Zinc 900?
Tailwind Zinc 900 in OKLCH is oklch(0.210 0.006 286) — lightness 0.210, chroma 0.006, hue 286°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Zinc 900 used for?
At shade 900, Tailwind Zinc 900 is best described as "Strong dark tone". Recommended uses: Body text on white, Dark panel backgrounds, Near-dark UI elements.