#18141C#18141C

#18141C is a very dark, near-neutral violet. Relative luminance 0.008; OKLCH L 20.0% C 0.017 H 307.5°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#18141C
RGBrgb(24, 20, 28)
HSLhsl(270, 17%, 9%)
HSVhsv(270, 29%, 11%)
CMYKcmyk(14.3%, 28.6%, 0%, 89%)
CIE-LABlab(7.03, 3.96, -4.86)
CIE-LCHlch(7.03, 6.27, 309.18°)
OKLaboklab(19.98% 0.0103 -0.0134)
OKLCHoklch(19.98% 0.017 307.5)
XYZxyz(0.8364, 0.7783, 1.2046)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18141C #181C14
analogous
#14141C #18141C #1C141C
triadic
#18141C #1C1814 #141C18
tetradic
#18141C #1C1414 #181C14 #141C1C
square
#18141C #1C1414 #181C14 #141C1C
split-complementary
#18141C #1C1C14 #141C14
monochromatic
#0F0D12 #0F0D12 #18141C #372E40 #554763

Accessibility & contrast

On white

18.17
#18141C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#18141C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18141C
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18141C#FFFFFF#000000##FFFFFF
##18141C1.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13151C
Deuteranopia (green-blind)
#13161C
Tritanopia (blue-blind)
#181517
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #18141c;
/* rgb */ color: rgb(24, 20, 28);
/* oklch */ color: oklch(20.0% 0.017 307.5);
Tailwind
colors: {
  custom: {
    50: '#545158',
    500: '#18141c',
    950: '#000000',
  },
}
SCSS
$custom: #18141c;
$custom-light: #545158;
$custom-dark: #000000;
JSON
{
  "hex": "#18141c",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 28
  },
  "hsl": {
    "h": 270,
    "s": 16.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.19977,
    "c": 0.01685,
    "h": 307.5
  },
  "luminance": 0.00778
}

Semantic roles & 50–950 ramp

primary
#18141C
secondary
#464E3E
accent
#B96E94
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #18141C

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

Preview Lab → · Contrast checker → · Palette generator →

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