#1F0018#1F0018

#1F0018 is a very dark, moderate pink. Relative luminance 0.004; OKLCH L 16.2% C 0.071 H 338.0°. Best body text is #FFFFFF at 19.60:1 contrast (WCAG AA passes).

Color values

HEX#1F0018
RGBrgb(31, 0, 24)
HSLhsl(314, 100%, 6%)
HSVhsv(314, 100%, 12%)
CMYKcmyk(0%, 100%, 22.6%, 87.8%)
CIE-LABlab(3.23, 15.99, -7.23)
CIE-LCHlch(3.23, 17.55, 335.67°)
OKLaboklab(16.25% 0.0661 -0.0266)
OKLCHoklch(16.25% 0.071 338)
XYZxyz(0.7300, 0.3573, 0.8945)
Luminance0.0036 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0018 #001F07
analogous
#16001F #1F0018 #1F0008
triadic
#1F0018 #181F00 #00181F
tetradic
#1F0018 #1F1600 #001F07 #00081F
square
#1F0018 #1F1600 #001F07 #00081F
split-complementary
#1F0018 #081F00 #001F16
monochromatic
#1F0018 #1F0018 #1F0018 #5C0047 #990077

Accessibility & contrast

On white

19.60
#1F0018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#1F0018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0018
19.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0018#FFFFFF#000000##FFFFFF
##1F00181.0019.601.0719.60
#FFFFFF19.601.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010819
Deuteranopia (green-blind)
#0A0E17
Tritanopia (blue-blind)
#210109
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #1f0018;
/* rgb */ color: rgb(31, 0, 24);
/* oklch */ color: oklch(16.2% 0.071 338.0);
Tailwind
colors: {
  custom: {
    50: '#5a4654',
    500: '#1f0018',
    950: '#000000',
  },
}
SCSS
$custom: #1f0018;
$custom-light: #5a4654;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0018",
  "rgb": {
    "r": 31,
    "g": 0,
    "b": 24
  },
  "hsl": {
    "h": 313.548,
    "s": 100,
    "l": 6.078
  },
  "oklch": {
    "l": 0.16247,
    "c": 0.07122,
    "h": 338
  },
  "luminance": 0.00357
}

Semantic roles & 50–950 ramp

primary
#1F0018
secondary
#126826
accent
#FF5929
background
#F5F3F4
surface
#E9E5E7
border
#C5C1C3
text
#040002
muted
#797778

Preview Lab

Preview with #1F0018

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

Preview Lab → · Contrast checker → · Palette generator →

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