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
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
17.72:1
On Black
1.19:1
Tailwind Usage — All Utilities
Background
bg-zinc-900Text
text-zinc-900Border
border-zinc-900Ring
ring-zinc-900Outline
outline-zinc-900Fill
fill-zinc-900Stroke
stroke-zinc-900From (gradient)
from-zinc-900Via (gradient)
via-zinc-900To (gradient)
to-zinc-900Placeholder
placeholder-zinc-900Caret
caret-zinc-900Accent
accent-zinc-900Decoration
decoration-zinc-900Shadow Color
shadow-zinc-900Tailwind 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
Preview
On White
Aa Bb Cc
On Black
Aa Bb Cc
As Background
Aa Bb Cc — #18181B
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Zinc 900
Nearest Tailwind equivalent — #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.