#1F001F#1F001F

#1F001F is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 16.8% C 0.077 H 328.4°. Best body text is #FFFFFF at 19.48:1 contrast (WCAG AA passes).

Color values

HEX#1F001F
RGBrgb(31, 0, 31)
HSLhsl(300, 100%, 6%)
HSVhsv(300, 100%, 12%)
CMYKcmyk(0%, 100%, 0%, 87.8%)
CIE-LABlab(3.53, 18.08, -12.38)
CIE-LCHlch(3.53, 21.91, 325.60°)
OKLaboklab(16.79% 0.0657 -0.0405)
OKLCHoklch(16.79% 0.077 328.4)
XYZxyz(0.8124, 0.3903, 1.3286)
Luminance0.0039 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F001F #001F00
analogous
#0F001F #1F001F #1F000F
triadic
#1F001F #1F1F00 #001F1F
tetradic
#1F001F #1F0F00 #001F00 #000F1F
square
#1F001F #1F0F00 #001F00 #000F1F
split-complementary
#1F001F #0F1F00 #001F0F
monochromatic
#1F001F #1F001F #1F001F #5C005C #990099

Accessibility & contrast

On white

19.48
#1F001F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F001F
19.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F001F#FFFFFF#000000##FFFFFF
##1F001F1.0019.481.0819.48
#FFFFFF19.481.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A20
Deuteranopia (green-blind)
#060E1E
Tritanopia (blue-blind)
#20030E
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #1f001f;
/* rgb */ color: rgb(31, 0, 31);
/* oklch */ color: oklch(16.8% 0.077 328.4);
Tailwind
colors: {
  custom: {
    50: '#5a465a',
    500: '#1f001f',
    950: '#000000',
  },
}
SCSS
$custom: #1f001f;
$custom-light: #5a465a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f001f",
  "rgb": {
    "r": 31,
    "g": 0,
    "b": 31
  },
  "hsl": {
    "h": 300,
    "s": 100,
    "l": 6.078
  },
  "oklch": {
    "l": 0.16791,
    "c": 0.07717,
    "h": 328.4
  },
  "luminance": 0.0039
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F001F

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

Preview Lab → · Contrast checker → · Palette generator →

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