#18011F#18011F

#18011F is a very dark, moderate purple. Relative luminance 0.003; OKLCH L 15.6% C 0.071 H 318.2°. Best body text is #FFFFFF at 19.76:1 contrast (WCAG AA passes).

Color values

HEX#18011F
RGBrgb(24, 1, 31)
HSLhsl(286, 94%, 6%)
HSVhsv(286, 97%, 12%)
CMYKcmyk(22.6%, 96.8%, 0%, 87.8%)
CIE-LABlab(2.84, 13.74, -13.49)
CIE-LCHlch(2.84, 19.26, 315.53°)
OKLaboklab(15.6% 0.0526 -0.047)
OKLCHoklch(15.6% 0.071 318.2)
XYZxyz(0.6348, 0.3149, 1.3234)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18011F #081F01
analogous
#09011F #18011F #1F0117
triadic
#18011F #1F1801 #011F18
tetradic
#18011F #1F0901 #081F01 #01171F
square
#18011F #1F0901 #081F01 #01171F
split-complementary
#18011F #171F01 #011F09
monochromatic
#17011E #17011E #18011F #46035A #740596

Accessibility & contrast

On white

19.76
#18011F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#18011F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18011F
19.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18011F#FFFFFF#000000##FFFFFF
##18011F1.0019.761.0619.76
#FFFFFF19.761.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000920
Deuteranopia (green-blind)
#020B1E
Tritanopia (blue-blind)
#18050E
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #18011f;
/* rgb */ color: rgb(24, 1, 31);
/* oklch */ color: oklch(15.6% 0.071 318.2);
Tailwind
colors: {
  custom: {
    50: '#54475a',
    500: '#18011f',
    950: '#000000',
  },
}
SCSS
$custom: #18011f;
$custom-light: #54475a;
$custom-dark: #000000;
JSON
{
  "hex": "#18011f",
  "rgb": {
    "r": 24,
    "g": 1,
    "b": 31
  },
  "hsl": {
    "h": 286,
    "s": 93.75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.15601,
    "c": 0.07051,
    "h": 318.2
  },
  "luminance": 0.00315
}

Semantic roles & 50–950 ramp

primary
#18011F
secondary
#286715
accent
#FF295B
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#020004
muted
#787779

Preview Lab

Preview with #18011F

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

Preview Lab → · Contrast checker → · Palette generator →

#18011F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva