#1F001B#1F001B

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

Color values

HEX#1F001B
RGBrgb(31, 0, 27)
HSLhsl(308, 100%, 6%)
HSVhsv(308, 100%, 12%)
CMYKcmyk(0%, 100%, 12.9%, 87.8%)
CIE-LABlab(3.35, 16.83, -9.46)
CIE-LCHlch(3.35, 19.30, 330.67°)
OKLaboklab(16.47% 0.0661 -0.0327)
OKLCHoklch(16.47% 0.074 333.7)
XYZxyz(0.7629, 0.3705, 1.0680)
Luminance0.0037 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F001B #001F04
analogous
#13001F #1F001B #1F000B
triadic
#1F001B #1B1F00 #001B1F
tetradic
#1F001B #1F1300 #001F04 #000B1F
square
#1F001B #1F1300 #001F04 #000B1F
split-complementary
#1F001B #0B1F00 #001F13
monochromatic
#1F001B #1F001B #1F001B #5C0050 #990086

Accessibility & contrast

On white

19.55
#1F001B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#1F001B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F001B
19.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F001B#FFFFFF#000000##FFFFFF
##1F001B1.0019.551.0719.55
#FFFFFF19.551.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00091C
Deuteranopia (green-blind)
#080E1A
Tritanopia (blue-blind)
#21020B
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #1f001b;
/* rgb */ color: rgb(31, 0, 27);
/* oklch */ color: oklch(16.5% 0.074 333.7);
Tailwind
colors: {
  custom: {
    50: '#5a4657',
    500: '#1f001b',
    950: '#000000',
  },
}
SCSS
$custom: #1f001b;
$custom-light: #5a4657;
$custom-dark: #000000;
JSON
{
  "hex": "#1f001b",
  "rgb": {
    "r": 31,
    "g": 0,
    "b": 27
  },
  "hsl": {
    "h": 307.742,
    "s": 100,
    "l": 6.078
  },
  "oklch": {
    "l": 0.16469,
    "c": 0.0737,
    "h": 333.7
  },
  "luminance": 0.0037
}

Semantic roles & 50–950 ramp

primary
#1F001B
secondary
#12681E
accent
#FF4429
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#040003
muted
#797778

Preview Lab

Preview with #1F001B

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

Preview Lab → · Contrast checker → · Palette generator →

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