#18031F#18031F

#18031F is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 16.1% C 0.064 H 317.2°. Best body text is #FFFFFF at 19.60:1 contrast (WCAG AA passes).

Color values

HEX#18031F
RGBrgb(24, 3, 31)
HSLhsl(285, 82%, 7%)
HSVhsv(285, 90%, 12%)
CMYKcmyk(22.6%, 90.3%, 0%, 87.8%)
CIE-LABlab(3.24, 12.94, -12.90)
CIE-LCHlch(3.24, 18.27, 315.09°)
OKLaboklab(16.13% 0.047 -0.0435)
OKLCHoklch(16.13% 0.064 317.2)
XYZxyz(0.6565, 0.3583, 1.3306)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18031F #0A1F03
analogous
#0A031F #18031F #1F0318
triadic
#18031F #1F1803 #031F18
tetradic
#18031F #1F0A03 #0A1F03 #03181F
square
#18031F #1F0A03 #0A1F03 #03181F
split-complementary
#18031F #181F03 #031F0A
monochromatic
#16031C #16031C #18031F #430857 #6E0E8F

Accessibility & contrast

On white

19.60
#18031F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#18031F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18031F
19.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18031F#FFFFFF#000000##FFFFFF
##18031F1.0019.601.0719.60
#FFFFFF19.601.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A20
Deuteranopia (green-blind)
#030C1E
Tritanopia (blue-blind)
#18070F
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #18031f;
/* rgb */ color: rgb(24, 3, 31);
/* oklch */ color: oklch(16.1% 0.064 317.2);
Tailwind
colors: {
  custom: {
    50: '#54485a',
    500: '#18031f',
    950: '#000000',
  },
}
SCSS
$custom: #18031f;
$custom-light: #54485a;
$custom-dark: #000000;
JSON
{
  "hex": "#18031f",
  "rgb": {
    "r": 24,
    "g": 3,
    "b": 31
  },
  "hsl": {
    "h": 285,
    "s": 82.353,
    "l": 6.667
  },
  "oklch": {
    "l": 0.16128,
    "c": 0.06403,
    "h": 317.2
  },
  "luminance": 0.00358
}

Semantic roles & 50–950 ramp

primary
#18031F
secondary
#2D631B
accent
#F92F61
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#020004
muted
#787779

Preview Lab

Preview with #18031F

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

Preview Lab → · Contrast checker → · Palette generator →

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