#18181b
#18181b is rgb(24, 24, 27), or hsl(240, 6%, 10%). It exactly matches the sRGB hex approximation of zinc-900 in the reference Tailwind v4 palette.
Conversions
WCAG contrast
| Background | Ratio | AA text | AA large | AAA text |
|---|---|---|---|---|
| white | 17.72:1 | pass | pass | pass |
| black | 1.19:1 | fail | fail | fail |
| slate-900 | 1.01:1 | fail | fail | fail |
| gray-100 | 16.10:1 | pass | pass | pass |
Ratios use WCAG relative luminance for opaque sRGB colors. Normal text requires 4.5:1, or 7:1 at AAA. Large text requires 3:1: at least 24 CSS pixels, or about 18.67 CSS pixels when bold. Pass/fail uses the unrounded ratio. Contrast alone is not a full accessibility assessment.
Colors paired with #18181b in real UI palettes
These colors appear alongside #18181b in StyleKit's curated palettes. Co-occurrence is not a promise of text readability; each pair includes its measured contrast.
- #0a0a0a
Used together in Oversized Typography.
1.12:1
Not for normal text - #3b82f6
Used together in Bento Grid.
4.82:1
AA normal text - #71717a
Used together in Oversized Typography.
3.67:1
Not for normal text - #8b5cf6
Used together in Bento Grid.
4.18:1
Not for normal text - #e4e4e7
Used together in Oversized Typography.
13.96:1
AA normal text - #ec4899
Used together in Bento Grid.
5.02:1
AA normal text
A readable starting point
white text on #18181b: 17.72:1 contrast.
Design styles using this color
Tints and shades
Lightness ladder in HSL space, from the lightest tint to the darkest shade of #18181b.
Similar colors in the library
Nearest swatches by perceptual OKLab distance across all curated style palettes.
AI prompt snippet
Use #18181b as the primary color, following the Bento Grid style: rgb(24, 24, 27), nearest Tailwind token zinc-900. Keep text contrast at least 4.5:1 (this color scores 17.72:1 on white, 1.19:1 on black).
Paste this into ChatGPT, Claude, Cursor, or v0 to use #18181b with correct contrast constraints. Browse all palette colors.
Questions about #18181b
What color is #18181b?
#18181b is rgb(24, 24, 27), or hsl(240, 6%, 10%). It exactly matches the sRGB hex approximation of zinc-900 in the reference Tailwind v4 palette.
What text color should I use on #18181b?
White (#ffffff) has the higher black-or-white contrast against #18181b: 17.72:1. This calculation assumes opaque, flat sRGB colors. Normal text requires 4.5:1 and large text 3:1 under WCAG 2.2 SC 1.4.3; it is not a complete accessibility assessment.
How can I use exactly #18181b in Tailwind CSS?
Use bg-[#18181b], text-[#18181b], or a CSS custom property instead of substituting a nearby named token. The reference palette is Tailwind CSS 4.1.18, converted from OKLCH to sRGB hex; newer Tailwind versions and custom themes can differ.
Sources and calculation limits
Reference palette: Tailwind CSS 4.1.18, converted from OKLCH to sRGB hex. Named tokens are versioned approximations; use the exact hex utilities when matching an existing design. Palette pairings come from the linked StyleKit definitions, not external popularity or preference data.