#18161C#18161C

#18161C is a very dark, near-neutral violet. Relative luminance 0.009; OKLCH L 20.5% C 0.012 H 300.5°. Best body text is #FFFFFF at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#18161C
RGBrgb(24, 22, 28)
HSLhsl(260, 12%, 10%)
HSVhsv(260, 21%, 11%)
CMYKcmyk(14.3%, 21.4%, 0%, 89%)
CIE-LABlab(7.69, 2.59, -3.86)
CIE-LCHlch(7.69, 4.65, 303.84°)
OKLaboklab(20.52% 0.0062 -0.0104)
OKLCHoklch(20.52% 0.012 300.5)
XYZxyz(0.8732, 0.8518, 1.2168)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18161C #1A1C16
analogous
#16171C #18161C #1B161C
triadic
#18161C #1C1816 #161C18
tetradic
#18161C #1C1617 #1A1C16 #161C1B
square
#18161C #1C1617 #1A1C16 #161C1B
split-complementary
#18161C #1C1B16 #171C16
monochromatic
#0F0D11 #0F0D11 #18161C #35313E #534C61

Accessibility & contrast

On white

17.94
#18161C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#18161C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18161C
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18161C#FFFFFF#000000##FFFFFF
##18161C1.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15171C
Deuteranopia (green-blind)
#15171C
Tritanopia (blue-blind)
#171718
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #18161c;
/* rgb */ color: rgb(24, 22, 28);
/* oklch */ color: oklch(20.5% 0.012 300.5);
Tailwind
colors: {
  custom: {
    50: '#545258',
    500: '#18161c',
    950: '#000000',
  },
}
SCSS
$custom: #18161c;
$custom-light: #545258;
$custom-dark: #000000;
JSON
{
  "hex": "#18161c",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 28
  },
  "hsl": {
    "h": 260,
    "s": 12,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20521,
    "c": 0.01213,
    "h": 300.5
  },
  "luminance": 0.00852
}

Semantic roles & 50–950 ramp

primary
#18161C
secondary
#494D41
accent
#B5739F
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #18161C

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

Preview Lab → · Contrast checker → · Palette generator →

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