#1F021C#1F021C

#1F021C is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 17.0% C 0.068 H 332.3°. Best body text is #FFFFFF at 19.38:1 contrast (WCAG AA passes).

Color values

HEX#1F021C
RGBrgb(31, 2, 28)
HSLhsl(306, 88%, 6%)
HSVhsv(306, 94%, 12%)
CMYKcmyk(0%, 93.5%, 9.7%, 87.8%)
CIE-LABlab(3.78, 16.33, -9.61)
CIE-LCHlch(3.78, 18.95, 329.51°)
OKLaboklab(17.02% 0.0603 -0.0316)
OKLCHoklch(17.02% 0.068 332.3)
XYZxyz(0.7964, 0.4186, 1.1372)
Luminance0.0042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F021C #021F05
analogous
#14021F #1F021C #1F020E
triadic
#1F021C #1C1F02 #021C1F
tetradic
#1F021C #1F1402 #021F05 #020E1F
square
#1F021C #1F1402 #021F05 #020E1F
split-complementary
#1F021C #0E1F02 #021F14
monochromatic
#1D021A #1D021A #1F021C #580650 #920984

Accessibility & contrast

On white

19.38
#1F021C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F021C
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F021C#FFFFFF#000000##FFFFFF
##1F021C1.0019.381.0819.38
#FFFFFF19.381.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010B1D
Deuteranopia (green-blind)
#0A0F1B
Tritanopia (blue-blind)
#21040D
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #1f021c;
/* rgb */ color: rgb(31, 2, 28);
/* oklch */ color: oklch(17.0% 0.068 332.3);
Tailwind
colors: {
  custom: {
    50: '#5a4758',
    500: '#1f021c',
    950: '#000000',
  },
}
SCSS
$custom: #1f021c;
$custom-light: #5a4758;
$custom-dark: #000000;
JSON
{
  "hex": "#1f021c",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 28
  },
  "hsl": {
    "h": 306.207,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.17022,
    "c": 0.06809,
    "h": 332.3
  },
  "luminance": 0.00419
}

Semantic roles & 50–950 ramp

primary
#1F021C
secondary
#186520
accent
#FE402A
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040003
muted
#797778

Preview Lab

Preview with #1F021C

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

Preview Lab → · Contrast checker → · Palette generator →

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