#18151A#18151A

#18151A is a very dark, near-neutral violet. Relative luminance 0.008; OKLCH L 20.1% C 0.011 H 311.9°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#18151A
RGBrgb(24, 21, 26)
HSLhsl(276, 11%, 9%)
HSVhsv(276, 19%, 10%)
CMYKcmyk(7.7%, 19.2%, 0%, 89.8%)
CIE-LABlab(7.27, 2.71, -2.96)
CIE-LCHlch(7.27, 4.01, 312.42°)
OKLaboklab(20.15% 0.0072 -0.0081)
OKLCHoklch(20.15% 0.011 311.9)
XYZxyz(0.8313, 0.8051, 1.0887)
Luminance0.0080 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18151A #171A15
analogous
#16151A #18151A #1A151A
triadic
#18151A #1A1815 #151A18
tetradic
#18151A #1A1615 #171A15 #151A1A
square
#18151A #1A1615 #171A15 #151A1A
split-complementary
#18151A #1A1A15 #151A16
monochromatic
#100E11 #100E11 #18151A #37303C #574C5E

Accessibility & contrast

On white

18.09
#18151A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18151A
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18151A#FFFFFF#000000##FFFFFF
##18151A1.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18151a;
/* rgb */ color: rgb(24, 21, 26);
/* oklch */ color: oklch(20.1% 0.011 311.9);
Tailwind
colors: {
  custom: {
    50: '#545256',
    500: '#18151a',
    950: '#000000',
  },
}
SCSS
$custom: #18151a;
$custom-light: #545256;
$custom-dark: #000000;
JSON
{
  "hex": "#18151a",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 26
  },
  "hsl": {
    "h": 276,
    "s": 10.638,
    "l": 9.216
  },
  "oklch": {
    "l": 0.20149,
    "c": 0.01083,
    "h": 311.9
  },
  "luminance": 0.00805
}

Semantic roles & 50–950 ramp

primary
#18151A
secondary
#444B40
accent
#B4748E
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #18151A

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

Preview Lab → · Contrast checker → · Palette generator →

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