#1F021D#1F021D

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

Color values

HEX#1F021D
RGBrgb(31, 2, 29)
HSLhsl(304, 88%, 6%)
HSVhsv(304, 94%, 12%)
CMYKcmyk(0%, 93.5%, 6.5%, 87.8%)
CIE-LABlab(3.83, 16.63, -10.34)
CIE-LCHlch(3.83, 19.59, 328.13°)
OKLaboklab(17.1% 0.0603 -0.0336)
OKLCHoklch(17.1% 0.069 330.9)
XYZxyz(0.8086, 0.4235, 1.2013)
Luminance0.0042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F021D #021F04
analogous
#13021F #1F021D #1F020F
triadic
#1F021D #1D1F02 #021D1F
tetradic
#1F021D #1F1302 #021F04 #020F1F
square
#1F021D #1F1302 #021F04 #020F1F
split-complementary
#1F021D #0F1F02 #021F13
monochromatic
#1D021B #1D021B #1F021D #580653 #920989

Accessibility & contrast

On white

19.36
#1F021D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F021D
19.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F021D#FFFFFF#000000##FFFFFF
##1F021D1.0019.361.0819.36
#FFFFFF19.361.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010B1E
Deuteranopia (green-blind)
#090F1C
Tritanopia (blue-blind)
#21040E
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1f021d;
/* rgb */ color: rgb(31, 2, 29);
/* oklch */ color: oklch(17.1% 0.069 330.9);
Tailwind
colors: {
  custom: {
    50: '#5a4758',
    500: '#1f021d',
    950: '#000000',
  },
}
SCSS
$custom: #1f021d;
$custom-light: #5a4758;
$custom-dark: #000000;
JSON
{
  "hex": "#1f021d",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 29
  },
  "hsl": {
    "h": 304.138,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.17097,
    "c": 0.06905,
    "h": 330.9
  },
  "luminance": 0.00423
}

Semantic roles & 50–950 ramp

primary
#1F021D
secondary
#18651D
accent
#FE382A
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040003
muted
#797778

Preview Lab

Preview with #1F021D

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

Preview Lab → · Contrast checker → · Palette generator →

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