#1D021C#1D021C

#1D021C is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 16.6% C 0.067 H 329.5°. Best body text is #FFFFFF at 19.49:1 contrast (WCAG AA passes).

Color values

HEX#1D021C
RGBrgb(29, 2, 28)
HSLhsl(302, 87%, 6%)
HSVhsv(302, 93%, 11%)
CMYKcmyk(0%, 93.1%, 3.4%, 88.6%)
CIE-LABlab(3.51, 15.11, -10.05)
CIE-LCHlch(3.51, 18.14, 326.37°)
OKLaboklab(16.61% 0.0576 -0.0339)
OKLCHoklch(16.61% 0.067 329.5)
XYZxyz(0.7380, 0.3885, 1.1345)
Luminance0.0039 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D021C #021D03
analogous
#10021D #1D021C #1D020E
triadic
#1D021C #1C1D02 #021C1D
tetradic
#1D021C #1D1002 #021D03 #020E1D
square
#1D021C #1D1002 #021D03 #020E1D
split-complementary
#1D021C #0E1D02 #021D10
monochromatic
#1D021C #1D021C #1D021C #560653 #900A8B

Accessibility & contrast

On white

19.49
#1D021C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D021C
19.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D021C#FFFFFF#000000##FFFFFF
##1D021C1.0019.491.0819.49
#FFFFFF19.491.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A1D
Deuteranopia (green-blind)
#080E1B
Tritanopia (blue-blind)
#1E040D
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #1d021c;
/* rgb */ color: rgb(29, 2, 28);
/* oklch */ color: oklch(16.6% 0.067 329.5);
Tailwind
colors: {
  custom: {
    50: '#584758',
    500: '#1d021c',
    950: '#000000',
  },
}
SCSS
$custom: #1d021c;
$custom-light: #584758;
$custom-dark: #000000;
JSON
{
  "hex": "#1d021c",
  "rgb": {
    "r": 29,
    "g": 2,
    "b": 28
  },
  "hsl": {
    "h": 302.222,
    "s": 87.097,
    "l": 6.078
  },
  "oklch": {
    "l": 0.16607,
    "c": 0.0668,
    "h": 329.5
  },
  "luminance": 0.00388
}

Semantic roles & 50–950 ramp

primary
#1D021C
secondary
#18631B
accent
#FD322B
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#030003
muted
#787778

Preview Lab

Preview with #1D021C

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

Preview Lab → · Contrast checker → · Palette generator →

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