#1F0023#1F0023

#1F0023 is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 17.1% C 0.081 H 323.5°. Best body text is #FFFFFF at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#1F0023
RGBrgb(31, 0, 35)
HSLhsl(293, 100%, 7%)
HSVhsv(293, 100%, 14%)
CMYKcmyk(11.4%, 100%, 0%, 86.3%)
CIE-LABlab(3.73, 19.49, -15.21)
CIE-LCHlch(3.73, 24.73, 322.03°)
OKLaboklab(17.14% 0.0649 -0.0481)
OKLCHoklch(17.14% 0.081 323.5)
XYZxyz(0.8684, 0.4127, 1.6237)
Luminance0.0041 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0023 #042300
analogous
#0E0023 #1F0023 #230016
triadic
#1F0023 #231F00 #00231F
tetradic
#1F0023 #230E00 #042300 #001623
square
#1F0023 #230E00 #042300 #001623
split-complementary
#1F0023 #162300 #00230E
monochromatic
#1B001F #1B001F #1F0023 #550060 #8B009D

Accessibility & contrast

On white

19.40
#1F0023 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0023
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0023#FFFFFF#000000##FFFFFF
##1F00231.0019.401.0819.40
#FFFFFF19.401.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B24
Deuteranopia (green-blind)
#040F22
Tritanopia (blue-blind)
#200510
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #1f0023;
/* rgb */ color: rgb(31, 0, 35);
/* oklch */ color: oklch(17.1% 0.081 323.5);
Tailwind
colors: {
  custom: {
    50: '#5b465e',
    500: '#1f0023',
    950: '#000000',
  },
}
SCSS
$custom: #1f0023;
$custom-light: #5b465e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0023",
  "rgb": {
    "r": 31,
    "g": 0,
    "b": 35
  },
  "hsl": {
    "h": 293.143,
    "s": 100,
    "l": 6.863
  },
  "oklch": {
    "l": 0.17139,
    "c": 0.08077,
    "h": 323.5
  },
  "luminance": 0.00413
}

Semantic roles & 50–950 ramp

primary
#1F0023
secondary
#1D6C13
accent
#FF2941
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#040004
muted
#797779

Preview Lab

Preview with #1F0023

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

Preview Lab → · Contrast checker → · Palette generator →

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