#1F021F#1F021F

#1F021F is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 17.3% C 0.071 H 328.1°. Best body text is #FFFFFF at 19.32:1 contrast (WCAG AA passes).

Color values

HEX#1F021F
RGBrgb(31, 2, 31)
HSLhsl(300, 88%, 6%)
HSVhsv(300, 94%, 12%)
CMYKcmyk(0%, 93.5%, 0%, 87.8%)
CIE-LABlab(3.92, 17.28, -11.79)
CIE-LCHlch(3.92, 20.92, 325.71°)
OKLaboklab(17.25% 0.0603 -0.0375)
OKLCHoklch(17.25% 0.071 328.1)
XYZxyz(0.8341, 0.4337, 1.3358)
Luminance0.0043 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F021F #021F02
analogous
#11021F #1F021F #1F0211
triadic
#1F021F #1F1F02 #021F1F
tetradic
#1F021F #1F1102 #021F02 #02111F
square
#1F021F #1F1102 #021F02 #02111F
split-complementary
#1F021F #111F02 #021F11
monochromatic
#1D021D #1D021D #1F021F #580658 #920992

Accessibility & contrast

On white

19.32
#1F021F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#1F021F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F021F
19.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F021F#FFFFFF#000000##FFFFFF
##1F021F1.0019.321.0919.32
#FFFFFF19.321.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B20
Deuteranopia (green-blind)
#080F1E
Tritanopia (blue-blind)
#20050F
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1f021f;
/* rgb */ color: rgb(31, 2, 31);
/* oklch */ color: oklch(17.3% 0.071 328.1);
Tailwind
colors: {
  custom: {
    50: '#5a475a',
    500: '#1f021f',
    950: '#000000',
  },
}
SCSS
$custom: #1f021f;
$custom-light: #5a475a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f021f",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 31
  },
  "hsl": {
    "h": 300,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.17252,
    "c": 0.07099,
    "h": 328.1
  },
  "luminance": 0.00434
}

Semantic roles & 50–950 ramp

primary
#1F021F
secondary
#186518
accent
#FE2A2A
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040004
muted
#797779

Preview Lab

Preview with #1F021F

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

Preview Lab → · Contrast checker → · Palette generator →

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