#1F021B#1F021B

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

Color values

HEX#1F021B
RGBrgb(31, 2, 27)
HSLhsl(308, 88%, 6%)
HSVhsv(308, 94%, 12%)
CMYKcmyk(0%, 93.5%, 12.9%, 87.8%)
CIE-LABlab(3.74, 16.03, -8.88)
CIE-LCHlch(3.74, 18.32, 331.02°)
OKLaboklab(16.95% 0.0603 -0.0296)
OKLCHoklch(16.95% 0.067 333.8)
XYZxyz(0.7846, 0.4139, 1.0753)
Luminance0.0041 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F021B #021F06
analogous
#15021F #1F021B #1F020D
triadic
#1F021B #1B1F02 #021B1F
tetradic
#1F021B #1F1502 #021F06 #020D1F
square
#1F021B #1F1502 #021F06 #020D1F
split-complementary
#1F021B #0D1F02 #021F15
monochromatic
#1D0219 #1D0219 #1F021B #58064D #92097F

Accessibility & contrast

On white

19.39
#1F021B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F021B
19.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F021B#FFFFFF#000000##FFFFFF
##1F021B1.0019.391.0819.39
#FFFFFF19.391.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#020A1C
Deuteranopia (green-blind)
#0A0F1A
Tritanopia (blue-blind)
#21040C
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #1f021b;
/* rgb */ color: rgb(31, 2, 27);
/* oklch */ color: oklch(16.9% 0.067 333.8);
Tailwind
colors: {
  custom: {
    50: '#5a4757',
    500: '#1f021b',
    950: '#000000',
  },
}
SCSS
$custom: #1f021b;
$custom-light: #5a4757;
$custom-dark: #000000;
JSON
{
  "hex": "#1f021b",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 27
  },
  "hsl": {
    "h": 308.276,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.16949,
    "c": 0.06716,
    "h": 333.8
  },
  "luminance": 0.00414
}

Semantic roles & 50–950 ramp

primary
#1F021B
secondary
#186523
accent
#FE472A
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040003
muted
#797778

Preview Lab

Preview with #1F021B

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

Preview Lab → · Contrast checker → · Palette generator →

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