#1F031D#1F031D

#1F031D is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 17.3% C 0.066 H 330.9°. Best body text is #FFFFFF at 19.28:1 contrast (WCAG AA passes).

Color values

HEX#1F031D
RGBrgb(31, 3, 29)
HSLhsl(304, 82%, 7%)
HSVhsv(304, 90%, 12%)
CMYKcmyk(0%, 90.3%, 6.5%, 87.8%)
CIE-LABlab(4.02, 16.23, -10.05)
CIE-LCHlch(4.02, 19.09, 328.24°)
OKLaboklab(17.32% 0.0577 -0.0321)
OKLCHoklch(17.32% 0.066 330.9)
XYZxyz(0.8194, 0.4452, 1.2049)
Luminance0.0044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F031D #031F05
analogous
#13031F #1F031D #1F030F
triadic
#1F031D #1D1F03 #031D1F
tetradic
#1F031D #1F1303 #031F05 #030F1F
square
#1F031D #1F1303 #031F05 #030F1F
split-complementary
#1F031D #0F1F03 #031F13
monochromatic
#1C031A #1C031A #1F031D #570851 #8F0E85

Accessibility & contrast

On white

19.28
#1F031D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F031D
19.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F031D#FFFFFF#000000##FFFFFF
##1F031D1.0019.281.0919.28
#FFFFFF19.281.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#020B1E
Deuteranopia (green-blind)
#0A101C
Tritanopia (blue-blind)
#21050E
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1f031d;
/* rgb */ color: rgb(31, 3, 29);
/* oklch */ color: oklch(17.3% 0.066 330.9);
Tailwind
colors: {
  custom: {
    50: '#5a4758',
    500: '#1f031d',
    950: '#000000',
  },
}
SCSS
$custom: #1f031d;
$custom-light: #5a4758;
$custom-dark: #000000;
JSON
{
  "hex": "#1f031d",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 29
  },
  "hsl": {
    "h": 304.286,
    "s": 82.353,
    "l": 6.667
  },
  "oklch": {
    "l": 0.17323,
    "c": 0.06607,
    "h": 330.9
  },
  "luminance": 0.00445
}

Semantic roles & 50–950 ramp

primary
#1F031D
secondary
#1B6320
accent
#F93E2F
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040003
muted
#797778

Preview Lab

Preview with #1F031D

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

Preview Lab → · Contrast checker → · Palette generator →

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