#1D021F#1D021F

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

Color values

HEX#1D021F
RGBrgb(29, 2, 31)
HSLhsl(296, 88%, 6%)
HSVhsv(296, 94%, 12%)
CMYKcmyk(6.5%, 93.5%, 0%, 87.8%)
CIE-LABlab(3.65, 16.06, -12.22)
CIE-LCHlch(3.65, 20.18, 322.73°)
OKLaboklab(16.85% 0.0574 -0.0397)
OKLCHoklch(16.85% 0.07 325.3)
XYZxyz(0.7757, 0.4036, 1.3331)
Luminance0.0040 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D021F #041F02
analogous
#0F021F #1D021F #1F0213
triadic
#1D021F #1F1D02 #021F1D
tetradic
#1D021F #1F0F02 #041F02 #02131F
square
#1D021F #1F0F02 #041F02 #02131F
split-complementary
#1D021F #131F02 #021F0F
monochromatic
#1B021D #1B021D #1D021F #530658 #890992

Accessibility & contrast

On white

19.43
#1D021F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D021F
19.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D021F#FFFFFF#000000##FFFFFF
##1D021F1.0019.431.0819.43
#FFFFFF19.431.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B20
Deuteranopia (green-blind)
#060E1E
Tritanopia (blue-blind)
#1E050F
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #1d021f;
/* rgb */ color: rgb(29, 2, 31);
/* oklch */ color: oklch(16.8% 0.070 325.3);
Tailwind
colors: {
  custom: {
    50: '#58475a',
    500: '#1d021f',
    950: '#000000',
  },
}
SCSS
$custom: #1d021f;
$custom-light: #58475a;
$custom-dark: #000000;
JSON
{
  "hex": "#1d021f",
  "rgb": {
    "r": 29,
    "g": 2,
    "b": 31
  },
  "hsl": {
    "h": 295.862,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.16848,
    "c": 0.06983,
    "h": 325.3
  },
  "luminance": 0.00404
}

Semantic roles & 50–950 ramp

primary
#1D021F
secondary
#1D6518
accent
#FE2A38
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#030004
muted
#787779

Preview Lab

Preview with #1D021F

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

Preview Lab → · Contrast checker → · Palette generator →

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