#1F021A#1F021A

#1F021A is a very dark, moderate pink. Relative luminance 0.004; OKLCH L 16.9% C 0.066 H 335.4°. Best body text is #FFFFFF at 19.41:1 contrast (WCAG AA passes).

Color values

HEX#1F021A
RGBrgb(31, 2, 26)
HSLhsl(310, 88%, 6%)
HSVhsv(310, 94%, 12%)
CMYKcmyk(0%, 93.5%, 16.1%, 87.8%)
CIE-LABlab(3.70, 15.73, -8.14)
CIE-LCHlch(3.70, 17.71, 332.66°)
OKLaboklab(16.88% 0.0602 -0.0276)
OKLCHoklch(16.88% 0.066 335.4)
XYZxyz(0.7732, 0.4094, 1.0154)
Luminance0.0041 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F021A #021F07
analogous
#16021F #1F021A #1F020C
triadic
#1F021A #1A1F02 #021A1F
tetradic
#1F021A #1F1602 #021F07 #020C1F
square
#1F021A #1F1602 #021F07 #020C1F
split-complementary
#1F021A #0C1F02 #021F16
monochromatic
#1D0218 #1D0218 #1F021A #58064A #92097A

Accessibility & contrast

On white

19.41
#1F021A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F021A
19.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F021A#FFFFFF#000000##FFFFFF
##1F021A1.0019.411.0819.41
#FFFFFF19.411.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#020A1B
Deuteranopia (green-blind)
#0B0F19
Tritanopia (blue-blind)
#21030C
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #1f021a;
/* rgb */ color: rgb(31, 2, 26);
/* oklch */ color: oklch(16.9% 0.066 335.4);
Tailwind
colors: {
  custom: {
    50: '#5a4756',
    500: '#1f021a',
    950: '#000000',
  },
}
SCSS
$custom: #1f021a;
$custom-light: #5a4756;
$custom-dark: #000000;
JSON
{
  "hex": "#1f021a",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 26
  },
  "hsl": {
    "h": 310.345,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.16878,
    "c": 0.06623,
    "h": 335.4
  },
  "luminance": 0.00409
}

Semantic roles & 50–950 ramp

primary
#1F021A
secondary
#186525
accent
#FE4E2A
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040003
muted
#797778

Preview Lab

Preview with #1F021A

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

Preview Lab → · Contrast checker → · Palette generator →

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