#1F031F#1F031F

#1F031F is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 17.5% C 0.068 H 328.0°. Best body text is #FFFFFF at 19.25:1 contrast (WCAG AA passes).

Color values

HEX#1F031F
RGBrgb(31, 3, 31)
HSLhsl(300, 82%, 7%)
HSVhsv(300, 90%, 12%)
CMYKcmyk(0%, 90.3%, 0%, 87.8%)
CIE-LABlab(4.11, 16.88, -11.49)
CIE-LCHlch(4.11, 20.42, 325.75°)
OKLaboklab(17.47% 0.0578 -0.0361)
OKLCHoklch(17.47% 0.068 328)
XYZxyz(0.8449, 0.4554, 1.3395)
Luminance0.0046 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F031F #031F03
analogous
#11031F #1F031F #1F0311
triadic
#1F031F #1F1F03 #031F1F
tetradic
#1F031F #1F1103 #031F03 #03111F
square
#1F031F #1F1103 #031F03 #03111F
split-complementary
#1F031F #111F03 #031F11
monochromatic
#1C031C #1C031C #1F031F #570857 #8F0E8F

Accessibility & contrast

On white

19.25
#1F031F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F031F
19.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F031F#FFFFFF#000000##FFFFFF
##1F031F1.0019.251.0919.25
#FFFFFF19.251.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010C20
Deuteranopia (green-blind)
#09101E
Tritanopia (blue-blind)
#20060F
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1f031f;
/* rgb */ color: rgb(31, 3, 31);
/* oklch */ color: oklch(17.5% 0.068 328.0);
Tailwind
colors: {
  custom: {
    50: '#5a475a',
    500: '#1f031f',
    950: '#000000',
  },
}
SCSS
$custom: #1f031f;
$custom-light: #5a475a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f031f",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 31
  },
  "hsl": {
    "h": 300,
    "s": 82.353,
    "l": 6.667
  },
  "oklch": {
    "l": 0.17473,
    "c": 0.06809,
    "h": 328
  },
  "luminance": 0.00455
}

Semantic roles & 50–950 ramp

primary
#1F031F
secondary
#1B631B
accent
#F92F2F
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040003
muted
#797778

Preview Lab

Preview with #1F031F

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

Preview Lab → · Contrast checker → · Palette generator →

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