#18151D#18151D

#18151D is a very dark, near-neutral violet. Relative luminance 0.008; OKLCH L 20.3% C 0.016 H 302.1°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#18151D
RGBrgb(24, 21, 29)
HSLhsl(263, 16%, 10%)
HSVhsv(263, 28%, 11%)
CMYKcmyk(17.2%, 27.6%, 0%, 88.6%)
CIE-LABlab(7.40, 3.59, -5.07)
CIE-LCHlch(7.40, 6.21, 305.35°)
OKLaboklab(20.3% 0.0087 -0.0138)
OKLCHoklch(20.3% 0.016 302.1)
XYZxyz(0.8666, 0.8192, 1.2746)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18151D #1A1D15
analogous
#15161D #18151D #1C151D
triadic
#18151D #1D1815 #151D18
tetradic
#18151D #1D1516 #1A1D15 #151D1C
square
#18151D #1D1516 #1A1D15 #151D1C
split-complementary
#18151D #1D1C15 #161D15
monochromatic
#0F0D12 #0F0D12 #18151D #352F40 #534864

Accessibility & contrast

On white

18.04
#18151D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18151D
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18151D#FFFFFF#000000##FFFFFF
##18151D1.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14161D
Deuteranopia (green-blind)
#14161D
Tritanopia (blue-blind)
#171618
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #18151d;
/* rgb */ color: rgb(24, 21, 29);
/* oklch */ color: oklch(20.3% 0.016 302.1);
Tailwind
colors: {
  custom: {
    50: '#545258',
    500: '#18151d',
    950: '#000000',
  },
}
SCSS
$custom: #18151d;
$custom-light: #545258;
$custom-dark: #000000;
JSON
{
  "hex": "#18151d",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 29
  },
  "hsl": {
    "h": 262.5,
    "s": 16,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20298,
    "c": 0.01633,
    "h": 302.1
  },
  "luminance": 0.00819
}

Semantic roles & 50–950 ramp

primary
#18151D
secondary
#494F3F
accent
#B96F9D
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #18151D

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

Preview Lab → · Contrast checker → · Palette generator →

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