#18151E#18151E

#18151E is a very dark, near-neutral violet. Relative luminance 0.008; OKLCH L 20.4% C 0.018 H 300.0°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#18151E
RGBrgb(24, 21, 30)
HSLhsl(260, 18%, 10%)
HSVhsv(260, 30%, 12%)
CMYKcmyk(20%, 30%, 0%, 88.2%)
CIE-LABlab(7.45, 3.90, -5.76)
CIE-LCHlch(7.45, 6.96, 304.09°)
OKLaboklab(20.35% 0.0091 -0.0158)
OKLCHoklch(20.35% 0.018 300)
XYZxyz(0.8792, 0.8243, 1.3408)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18151E #1B1E15
analogous
#15171E #18151E #1C151E
triadic
#18151E #1E1815 #151E18
tetradic
#18151E #1E1517 #1B1E15 #151E1C
square
#18151E #1E1517 #1B1E15 #151E1C
split-complementary
#18151E #1E1C15 #171E15
monochromatic
#0E0D12 #0E0D12 #18151E #352E42 #524766

Accessibility & contrast

On white

18.03
#18151E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18151E
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18151E#FFFFFF#000000##FFFFFF
##18151E1.0018.031.1618.03
#FFFFFF18.031.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18151e;
/* rgb */ color: rgb(24, 21, 30);
/* oklch */ color: oklch(20.4% 0.018 300.0);
Tailwind
colors: {
  custom: {
    50: '#545259',
    500: '#18151e',
    950: '#000000',
  },
}
SCSS
$custom: #18151e;
$custom-light: #545259;
$custom-dark: #000000;
JSON
{
  "hex": "#18151e",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 30
  },
  "hsl": {
    "h": 260,
    "s": 17.647,
    "l": 10
  },
  "oklch": {
    "l": 0.20351,
    "c": 0.01822,
    "h": 300
  },
  "luminance": 0.00824
}

Semantic roles & 50–950 ramp

primary
#18151E
secondary
#4A503F
accent
#BA6DA1
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #18151E

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

Preview Lab → · Contrast checker → · Palette generator →

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