#1F001C#1F001C

#1F001C is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 16.5% C 0.075 H 332.3°. Best body text is #FFFFFF at 19.53:1 contrast (WCAG AA passes).

Color values

HEX#1F001C
RGBrgb(31, 0, 28)
HSLhsl(306, 100%, 6%)
HSVhsv(306, 100%, 12%)
CMYKcmyk(0%, 100%, 9.7%, 87.8%)
CIE-LABlab(3.39, 17.13, -10.20)
CIE-LCHlch(3.39, 19.93, 329.23°)
OKLaboklab(16.55% 0.066 -0.0346)
OKLCHoklch(16.55% 0.075 332.3)
XYZxyz(0.7747, 0.3752, 1.1300)
Luminance0.0037 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F001C #001F03
analogous
#12001F #1F001C #1F000C
triadic
#1F001C #1C1F00 #001C1F
tetradic
#1F001C #1F1200 #001F03 #000C1F
square
#1F001C #1F1200 #001F03 #000C1F
split-complementary
#1F001C #0C1F00 #001F12
monochromatic
#1F001C #1F001C #1F001C #5C0053 #99008B

Accessibility & contrast

On white

19.53
#1F001C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F001C
19.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F001C#FFFFFF#000000##FFFFFF
##1F001C1.0019.531.0819.53
#FFFFFF19.531.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00091D
Deuteranopia (green-blind)
#080E1B
Tritanopia (blue-blind)
#21020C
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #1f001c;
/* rgb */ color: rgb(31, 0, 28);
/* oklch */ color: oklch(16.5% 0.075 332.3);
Tailwind
colors: {
  custom: {
    50: '#5a4658',
    500: '#1f001c',
    950: '#000000',
  },
}
SCSS
$custom: #1f001c;
$custom-light: #5a4658;
$custom-dark: #000000;
JSON
{
  "hex": "#1f001c",
  "rgb": {
    "r": 31,
    "g": 0,
    "b": 28
  },
  "hsl": {
    "h": 305.806,
    "s": 100,
    "l": 6.078
  },
  "oklch": {
    "l": 0.16547,
    "c": 0.07455,
    "h": 332.3
  },
  "luminance": 0.00375
}

Semantic roles & 50–950 ramp

primary
#1F001C
secondary
#12681B
accent
#FF3E29
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#040003
muted
#797778

Preview Lab

Preview with #1F001C

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

Preview Lab → · Contrast checker → · Palette generator →

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