Color Reference · Onyx Shadow

#18181B

oklch(21% 0.006 286)

HEX
#18181B
OKLCH
oklch(21% 0.006 286)
RGB
rgb(24, 24, 27)
HSL
hsl(240deg 6% 10%)
Relative Luminance
Y = 0.0093

Using #18181B as Text Foreground

Sample text on White (#FFFFFF)
Contrast ratio 17.72:1
AAA
Sample text on Slate (#0F172A)
Contrast ratio 1.01:1
Fail

Using #18181B as Button / Surface Fill

White ink (#FFFFFF) on #18181B
Contrast ratio 17.72:1
AAA
Dark ink (#0F172A) on #18181B
Contrast ratio 1.01:1
Fail

Recommended accessible ink on #18181B: #FFFFFF.

OKLCH Tonal Scale (50–950)

Click any shade step to inspect its conversions and contrast profile.

Export Tailwind CSS v4 Scale →

OKLCH Color Harmonies from #18181B

Curated Palettes Featuring #18181B

Obsidian Gold Luxury

Haute-couture carbon black and champagne gold for premium storefronts.

Coral Pop Creator

Playful coral and cobalt accents designed for creator storefronts.

Amber Ledger Pro

Carbon exchange surfaces accented by warm amber gold and mint positive ticks.