#1F011D#1F011D

#1F011D is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 16.9% C 0.072 H 330.9°. Best body text is #FFFFFF at 19.44:1 contrast (WCAG AA passes).

Color values

HEX#1F011D
RGBrgb(31, 1, 29)
HSLhsl(304, 94%, 6%)
HSVhsv(304, 97%, 12%)
CMYKcmyk(0%, 96.8%, 6.5%, 87.8%)
CIE-LABlab(3.63, 17.03, -10.64)
CIE-LCHlch(3.63, 20.08, 328.02°)
OKLaboklab(16.86% 0.0631 -0.0351)
OKLCHoklch(16.86% 0.072 330.9)
XYZxyz(0.7977, 0.4018, 1.1977)
Luminance0.0040 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F011D #011F03
analogous
#12011F #1F011D #1F010E
triadic
#1F011D #1D1F01 #011D1F
tetradic
#1F011D #1F1201 #011F03 #010E1F
square
#1F011D #1F1201 #011F03 #010E1F
split-complementary
#1F011D #0E1F01 #011F12
monochromatic
#1E011C #1E011C #1F011D #5A0354 #96058C

Accessibility & contrast

On white

19.44
#1F011D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#1F011D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F011D
19.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F011D#FFFFFF#000000##FFFFFF
##1F011D1.0019.441.0819.44
#FFFFFF19.441.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A1E
Deuteranopia (green-blind)
#080F1C
Tritanopia (blue-blind)
#21030D
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #1f011d;
/* rgb */ color: rgb(31, 1, 29);
/* oklch */ color: oklch(16.9% 0.072 330.9);
Tailwind
colors: {
  custom: {
    50: '#5a4658',
    500: '#1f011d',
    950: '#000000',
  },
}
SCSS
$custom: #1f011d;
$custom-light: #5a4658;
$custom-dark: #000000;
JSON
{
  "hex": "#1f011d",
  "rgb": {
    "r": 31,
    "g": 1,
    "b": 29
  },
  "hsl": {
    "h": 304,
    "s": 93.75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.16865,
    "c": 0.07216,
    "h": 330.9
  },
  "luminance": 0.00402
}

Semantic roles & 50–950 ramp

primary
#1F011D
secondary
#15671B
accent
#FF3729
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#040003
muted
#797778

Preview Lab

Preview with #1F011D

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

Preview Lab → · Contrast checker → · Palette generator →

#1F011D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva