#18151F#18151F

#18151F is a very dark, muted violet. Relative luminance 0.008; OKLCH L 20.4% C 0.020 H 298.4°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#18151F
RGBrgb(24, 21, 31)
HSLhsl(258, 19%, 10%)
HSVhsv(258, 32%, 12%)
CMYKcmyk(22.6%, 32.3%, 0%, 87.8%)
CIE-LABlab(7.49, 4.21, -6.45)
CIE-LCHlch(7.49, 7.71, 303.13°)
OKLaboklab(20.41% 0.0096 -0.0177)
OKLCHoklch(20.41% 0.02 298.4)
XYZxyz(0.8921, 0.8294, 1.4092)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18151F #1C1F15
analogous
#15171F #18151F #1D151F
triadic
#18151F #1F1815 #151F18
tetradic
#18151F #1F1517 #1C1F15 #151F1D
square
#18151F #1F1517 #1C1F15 #151F1D
split-complementary
#18151F #1F1D15 #171F15
monochromatic
#0E0C12 #0E0C12 #18151F #342E43 #504668

Accessibility & contrast

On white

18.01
#18151F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#18151F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18151F
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18151F#FFFFFF#000000##FFFFFF
##18151F1.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13171F
Deuteranopia (green-blind)
#13161F
Tritanopia (blue-blind)
#171618
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #18151f;
/* rgb */ color: rgb(24, 21, 31);
/* oklch */ color: oklch(20.4% 0.020 298.4);
Tailwind
colors: {
  custom: {
    50: '#54525a',
    500: '#18151f',
    950: '#000000',
  },
}
SCSS
$custom: #18151f;
$custom-light: #54525a;
$custom-dark: #000000;
JSON
{
  "hex": "#18151f",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 31
  },
  "hsl": {
    "h": 258,
    "s": 19.231,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20405,
    "c": 0.0201,
    "h": 298.4
  },
  "luminance": 0.00829
}

Semantic roles & 50–950 ramp

primary
#18151F
secondary
#4C523E
accent
#BC6CA4
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #18151F

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

Preview Lab → · Contrast checker → · Palette generator →

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