#1F0029#1F0029

#1F0029 is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 17.7% C 0.086 H 316.9°. Best body text is #FFFFFF at 19.26:1 contrast (WCAG AA passes).

Color values

HEX#1F0029
RGBrgb(31, 0, 41)
HSLhsl(285, 100%, 8%)
HSVhsv(285, 100%, 16%)
CMYKcmyk(24.4%, 100%, 0%, 83.9%)
CIE-LABlab(4.08, 21.74, -19.30)
CIE-LCHlch(4.08, 29.07, 318.39°)
OKLaboklab(17.71% 0.0631 -0.059)
OKLCHoklch(17.71% 0.086 316.9)
XYZxyz(0.9653, 0.4514, 2.1337)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0029 #0A2900
analogous
#0A0029 #1F0029 #29001E
triadic
#1F0029 #291F00 #00291F
tetradic
#1F0029 #290A00 #0A2900 #001E29
square
#1F0029 #290A00 #0A2900 #001E29
split-complementary
#1F0029 #1E2900 #00290A
monochromatic
#17001F #17001F #1F0029 #4D0066 #7C00A3

Accessibility & contrast

On white

19.26
#1F0029 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0029
19.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0029#FFFFFF#000000##FFFFFF
##1F00291.0019.261.0919.26
#FFFFFF19.261.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2A
Deuteranopia (green-blind)
#000F28
Tritanopia (blue-blind)
#1E0714
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1f0029;
/* rgb */ color: rgb(31, 0, 41);
/* oklch */ color: oklch(17.7% 0.086 316.9);
Tailwind
colors: {
  custom: {
    50: '#5b4663',
    500: '#1f0029',
    950: '#000000',
  },
}
SCSS
$custom: #1f0029;
$custom-light: #5b4663;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0029",
  "rgb": {
    "r": 31,
    "g": 0,
    "b": 41
  },
  "hsl": {
    "h": 285.366,
    "s": 100,
    "l": 8.039
  },
  "oklch": {
    "l": 0.17708,
    "c": 0.08635,
    "h": 316.9
  },
  "luminance": 0.00451
}

Semantic roles & 50–950 ramp

primary
#1F0029
secondary
#2B7114
accent
#FF295D
background
#F5F3F5
surface
#E9E5EA
border
#C5C1C6
text
#040005
muted
#797779

Preview Lab

Preview with #1F0029

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

Preview Lab → · Contrast checker → · Palette generator →

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