#1F011F#1F011F

#1F011F is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 17.0% C 0.074 H 328.2°. Best body text is #FFFFFF at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#1F011F
RGBrgb(31, 1, 31)
HSLhsl(300, 94%, 6%)
HSVhsv(300, 97%, 12%)
CMYKcmyk(0%, 96.8%, 0%, 87.8%)
CIE-LABlab(3.72, 17.68, -12.08)
CIE-LCHlch(3.72, 21.41, 325.65°)
OKLaboklab(17.02% 0.0629 -0.0389)
OKLCHoklch(17.02% 0.074 328.2)
XYZxyz(0.8232, 0.4120, 1.3322)
Luminance0.0041 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F011F #011F01
analogous
#10011F #1F011F #1F0110
triadic
#1F011F #1F1F01 #011F1F
tetradic
#1F011F #1F1001 #011F01 #01101F
square
#1F011F #1F1001 #011F01 #01101F
split-complementary
#1F011F #101F01 #011F10
monochromatic
#1E011E #1E011E #1F011F #5A035A #960596

Accessibility & contrast

On white

19.40
#1F011F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F011F
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F011F#FFFFFF#000000##FFFFFF
##1F011F1.0019.401.0819.40
#FFFFFF19.401.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A20
Deuteranopia (green-blind)
#070F1E
Tritanopia (blue-blind)
#20040E
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #1f011f;
/* rgb */ color: rgb(31, 1, 31);
/* oklch */ color: oklch(17.0% 0.074 328.2);
Tailwind
colors: {
  custom: {
    50: '#5a465a',
    500: '#1f011f',
    950: '#000000',
  },
}
SCSS
$custom: #1f011f;
$custom-light: #5a465a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f011f",
  "rgb": {
    "r": 31,
    "g": 1,
    "b": 31
  },
  "hsl": {
    "h": 300,
    "s": 93.75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.17024,
    "c": 0.07401,
    "h": 328.2
  },
  "luminance": 0.00412
}

Semantic roles & 50–950 ramp

primary
#1F011F
secondary
#156715
accent
#FF2929
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#040004
muted
#797779

Preview Lab

Preview with #1F011F

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

Preview Lab → · Contrast checker → · Palette generator →

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