#18181C#18181C

#18181C is a very dark, near-neutral grey. Relative luminance 0.009; OKLCH L 21.1% C 0.008 H 285.7°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#18181C
RGBrgb(24, 24, 28)
HSLhsl(240, 8%, 10%)
HSVhsv(240, 14%, 11%)
CMYKcmyk(14.3%, 14.3%, 0%, 89%)
CIE-LABlab(8.41, 1.09, -2.80)
CIE-LCHlch(8.41, 3.00, 291.24°)
OKLaboklab(21.08% 0.0021 -0.0075)
OKLCHoklch(21.08% 0.008 285.7)
XYZxyz(0.9129, 0.9313, 1.2300)
Luminance0.0093 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18181C #1C1C18
analogous
#181A1C #18181C #1A181C
triadic
#18181C #1C1818 #181C18
tetradic
#18181C #1C181A #1C1C18 #181C1A
square
#18181C #1C181A #1C1C18 #181C1A
split-complementary
#18181C #1C1A18 #1A1C18
monochromatic
#0E0E10 #0E0E10 #18181C #34343D #50505E

Accessibility & contrast

On white

17.70
#18181C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#18181C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18181C
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18181C#FFFFFF#000000##FFFFFF
##18181C1.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17181C
Deuteranopia (green-blind)
#17181C
Tritanopia (blue-blind)
#171919
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #18181c;
/* rgb */ color: rgb(24, 24, 28);
/* oklch */ color: oklch(21.1% 0.008 285.7);
Tailwind
colors: {
  custom: {
    50: '#545457',
    500: '#18181c',
    950: '#000000',
  },
}
SCSS
$custom: #18181c;
$custom-light: #545457;
$custom-dark: #000000;
JSON
{
  "hex": "#18181c",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 28
  },
  "hsl": {
    "h": 240,
    "s": 7.692,
    "l": 10.196
  },
  "oklch": {
    "l": 0.21079,
    "c": 0.00782,
    "h": 285.7
  },
  "luminance": 0.00931
}

Semantic roles & 50–950 ramp

primary
#18181C
secondary
#4C4C44
accent
#B177B1
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #18181C

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#18181C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva