#1F0020#1F0020

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

Color values

HEX#1F0020
RGBrgb(31, 0, 32)
HSLhsl(298, 100%, 6%)
HSVhsv(298, 100%, 13%)
CMYKcmyk(3.1%, 100%, 0%, 87.5%)
CIE-LABlab(3.57, 18.42, -13.10)
CIE-LCHlch(3.57, 22.60, 324.59°)
OKLaboklab(16.88% 0.0655 -0.0424)
OKLCHoklch(16.88% 0.078 327.1)
XYZxyz(0.8258, 0.3957, 1.3991)
Luminance0.0040 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0020 #012000
analogous
#0F0020 #1F0020 #200011
triadic
#1F0020 #201F00 #00201F
tetradic
#1F0020 #200F00 #012000 #001120
square
#1F0020 #200F00 #012000 #001120
split-complementary
#1F0020 #112000 #00200F
monochromatic
#1E001F #1E001F #1F0020 #5A005D #96009A

Accessibility & contrast

On white

19.46
#1F0020 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0020
19.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0020#FFFFFF#000000##FFFFFF
##1F00201.0019.461.0819.46
#FFFFFF19.461.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0020;
/* rgb */ color: rgb(31, 0, 32);
/* oklch */ color: oklch(16.9% 0.078 327.1);
Tailwind
colors: {
  custom: {
    50: '#5a465b',
    500: '#1f0020',
    950: '#000000',
  },
}
SCSS
$custom: #1f0020;
$custom-light: #5a465b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0020",
  "rgb": {
    "r": 31,
    "g": 0,
    "b": 32
  },
  "hsl": {
    "h": 298.125,
    "s": 100,
    "l": 6.275
  },
  "oklch": {
    "l": 0.16875,
    "c": 0.07806,
    "h": 327.1
  },
  "luminance": 0.00396
}

Semantic roles & 50–950 ramp

primary
#1F0020
secondary
#156913
accent
#FF292F
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#040004
muted
#797779

Preview Lab

Preview with #1F0020

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

Preview Lab → · Contrast checker → · Palette generator →

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