#18121C#18121C

#18121C is a very dark, muted violet. Relative luminance 0.007; OKLCH L 19.4% C 0.022 H 311.5°. Best body text is #FFFFFF at 18.39:1 contrast (WCAG AA passes).

Color values

HEX#18121C
RGBrgb(24, 18, 28)
HSLhsl(276, 22%, 9%)
HSVhsv(276, 36%, 11%)
CMYKcmyk(14.3%, 35.7%, 0%, 89%)
CIE-LABlab(6.42, 5.21, -5.77)
CIE-LCHlch(6.42, 7.77, 312.06°)
OKLaboklab(19.45% 0.0144 -0.0163)
OKLCHoklch(19.45% 0.022 311.5)
XYZxyz(0.8026, 0.7107, 1.1933)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18121C #161C12
analogous
#13121C #18121C #1C121B
triadic
#18121C #1C1812 #121C18
tetradic
#18121C #1C1312 #161C12 #121B1C
square
#18121C #1C1312 #161C12 #121B1C
split-complementary
#18121C #1B1C12 #121C13
monochromatic
#100C13 #100C13 #18121C #382A41 #584267

Accessibility & contrast

On white

18.39
#18121C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#18121C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18121C
18.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18121C#FFFFFF#000000##FFFFFF
##18121C1.0018.391.1418.39
#FFFFFF18.391.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10141C
Deuteranopia (green-blind)
#12141C
Tritanopia (blue-blind)
#181315
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #18121c;
/* rgb */ color: rgb(24, 18, 28);
/* oklch */ color: oklch(19.4% 0.022 311.5);
Tailwind
colors: {
  custom: {
    50: '#544f58',
    500: '#18121c',
    950: '#000000',
  },
}
SCSS
$custom: #18121c;
$custom-light: #544f58;
$custom-dark: #000000;
JSON
{
  "hex": "#18121c",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 28
  },
  "hsl": {
    "h": 276,
    "s": 21.739,
    "l": 9.02
  },
  "oklch": {
    "l": 0.19447,
    "c": 0.02172,
    "h": 311.5
  },
  "luminance": 0.00711
}

Semantic roles & 50–950 ramp

primary
#18121C
secondary
#434F3A
accent
#BE6A8B
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #18121C

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

Preview Lab → · Contrast checker → · Palette generator →

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