#18121E#18121E

#18121E is a very dark, muted violet. Relative luminance 0.007; OKLCH L 19.6% C 0.025 H 307.0°. Best body text is #FFFFFF at 18.35:1 contrast (WCAG AA passes).

Color values

HEX#18121E
RGBrgb(24, 18, 30)
HSLhsl(270, 25%, 9%)
HSVhsv(270, 40%, 12%)
CMYKcmyk(20%, 40%, 0%, 88.2%)
CIE-LABlab(6.51, 5.84, -7.18)
CIE-LCHlch(6.51, 9.25, 309.12°)
OKLaboklab(19.56% 0.0152 -0.0202)
OKLCHoklch(19.56% 0.025 307)
XYZxyz(0.8273, 0.7205, 1.3235)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18121E #181E12
analogous
#12121E #18121E #1E121E
triadic
#18121E #1E1812 #121E18
tetradic
#18121E #1E1212 #181E12 #121E1E
square
#18121E #1E1212 #181E12 #121E1E
split-complementary
#18121E #1E1E12 #121E12
monochromatic
#0F0B13 #0F0B13 #18121E #372944 #55406B

Accessibility & contrast

On white

18.35
#18121E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18121E
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18121E#FFFFFF#000000##FFFFFF
##18121E1.0018.351.1418.35
#FFFFFF18.351.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10141E
Deuteranopia (green-blind)
#11141E
Tritanopia (blue-blind)
#171416
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #18121e;
/* rgb */ color: rgb(24, 18, 30);
/* oklch */ color: oklch(19.6% 0.025 307.0);
Tailwind
colors: {
  custom: {
    50: '#544f59',
    500: '#18121e',
    950: '#000000',
  },
}
SCSS
$custom: #18121e;
$custom-light: #544f59;
$custom-dark: #000000;
JSON
{
  "hex": "#18121e",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 30
  },
  "hsl": {
    "h": 270,
    "s": 25,
    "l": 9.412
  },
  "oklch": {
    "l": 0.1956,
    "c": 0.02526,
    "h": 307
  },
  "luminance": 0.00721
}

Semantic roles & 50–950 ramp

primary
#18121E
secondary
#46523A
accent
#C16694
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #18121E

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

Preview Lab → · Contrast checker → · Palette generator →

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