#18141E#18141E

#18141E is a very dark, muted violet. Relative luminance 0.008; OKLCH L 20.1% C 0.021 H 302.9°. Best body text is #FFFFFF at 18.14:1 contrast (WCAG AA passes).

Color values

HEX#18141E
RGBrgb(24, 20, 30)
HSLhsl(264, 20%, 10%)
HSVhsv(264, 33%, 12%)
CMYKcmyk(20%, 33.3%, 0%, 88.2%)
CIE-LABlab(7.12, 4.58, -6.25)
CIE-LCHlch(7.12, 7.75, 306.21°)
OKLaboklab(20.08% 0.0111 -0.0172)
OKLCHoklch(20.08% 0.021 302.9)
XYZxyz(0.8611, 0.7882, 1.3348)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18141E #1A1E14
analogous
#14151E #18141E #1D141E
triadic
#18141E #1E1814 #141E18
tetradic
#18141E #1E1415 #1A1E14 #141E1D
square
#18141E #1E1415 #1A1E14 #141E1D
split-complementary
#18141E #1E1D14 #151E14
monochromatic
#0F0C12 #0F0C12 #18141E #352C43 #534567

Accessibility & contrast

On white

18.14
#18141E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18141E
18.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18141E#FFFFFF#000000##FFFFFF
##18141E1.0018.141.1618.14
#FFFFFF18.141.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12161E
Deuteranopia (green-blind)
#13161E
Tritanopia (blue-blind)
#171517
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #18141e;
/* rgb */ color: rgb(24, 20, 30);
/* oklch */ color: oklch(20.1% 0.021 302.9);
Tailwind
colors: {
  custom: {
    50: '#545159',
    500: '#18141e',
    950: '#000000',
  },
}
SCSS
$custom: #18141e;
$custom-light: #545159;
$custom-dark: #000000;
JSON
{
  "hex": "#18141e",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 30
  },
  "hsl": {
    "h": 264,
    "s": 20,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20084,
    "c": 0.02053,
    "h": 302.9
  },
  "luminance": 0.00788
}

Semantic roles & 50–950 ramp

primary
#18141E
secondary
#49513D
accent
#BD6B9C
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #18141E

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

Preview Lab → · Contrast checker → · Palette generator →

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