#18151B#18151B

#18151B is a very dark, near-neutral violet. Relative luminance 0.008; OKLCH L 20.2% C 0.013 H 307.8°. Best body text is #FFFFFF at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#18151B
RGBrgb(24, 21, 27)
HSLhsl(270, 13%, 9%)
HSVhsv(270, 22%, 11%)
CMYKcmyk(11.1%, 22.2%, 0%, 89.4%)
CIE-LABlab(7.31, 2.99, -3.67)
CIE-LCHlch(7.31, 4.73, 309.20°)
OKLaboklab(20.2% 0.0077 -0.01)
OKLCHoklch(20.2% 0.013 307.8)
XYZxyz(0.8426, 0.8097, 1.1486)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18151B #181B15
analogous
#15151B #18151B #1B151B
triadic
#18151B #1B1815 #151B18
tetradic
#18151B #1B1515 #181B15 #151B1B
square
#18151B #1B1515 #181B15 #151B1B
split-complementary
#18151B #1B1B15 #151B15
monochromatic
#0F0D11 #0F0D11 #18151B #37303D #554B60

Accessibility & contrast

On white

18.07
#18151B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#18151B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18151B
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18151B#FFFFFF#000000##FFFFFF
##18151B1.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14161B
Deuteranopia (green-blind)
#15161B
Tritanopia (blue-blind)
#181617
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #18151b;
/* rgb */ color: rgb(24, 21, 27);
/* oklch */ color: oklch(20.2% 0.013 307.8);
Tailwind
colors: {
  custom: {
    50: '#545257',
    500: '#18151b',
    950: '#000000',
  },
}
SCSS
$custom: #18151b;
$custom-light: #545257;
$custom-dark: #000000;
JSON
{
  "hex": "#18151b",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 27
  },
  "hsl": {
    "h": 270,
    "s": 12.5,
    "l": 9.412
  },
  "oklch": {
    "l": 0.20197,
    "c": 0.01262,
    "h": 307.8
  },
  "luminance": 0.0081
}

Semantic roles & 50–950 ramp

primary
#18151B
secondary
#464C40
accent
#B57294
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #18151B

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

Preview Lab → · Contrast checker → · Palette generator →

#18151B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva