#1F032D#1F032D

#1F032D is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.7% C 0.083 H 311.9°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#1F032D
RGBrgb(31, 3, 45)
HSLhsl(280, 88%, 9%)
HSVhsv(280, 93%, 18%)
CMYKcmyk(31.1%, 93.3%, 0%, 82.4%)
CIE-LABlab(4.93, 21.88, -20.99)
CIE-LCHlch(4.93, 30.32, 316.19°)
OKLaboklab(18.7% 0.0555 -0.062)
OKLCHoklch(18.7% 0.083 311.9)
XYZxyz(1.0712, 0.5459, 2.5311)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F032D #112D03
analogous
#0A032D #1F032D #2D0326
triadic
#1F032D #2D1F03 #032D1F
tetradic
#1F032D #2D0A03 #112D03 #03262D
square
#1F032D #2D0A03 #112D03 #03262D
split-complementary
#1F032D #262D03 #032D0A
monochromatic
#14021D #14021D #1F032D #470766 #6E0BA0

Accessibility & contrast

On white

18.93
#1F032D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1F032D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F032D
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F032D#FFFFFF#000000##FFFFFF
##1F032D1.0018.931.1118.93
#FFFFFF18.931.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2E
Deuteranopia (green-blind)
#00112C
Tritanopia (blue-blind)
#1D0C17
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1f032d;
/* rgb */ color: rgb(31, 3, 45);
/* oklch */ color: oklch(18.7% 0.083 311.9);
Tailwind
colors: {
  custom: {
    50: '#5c4766',
    500: '#1f032d',
    950: '#000000',
  },
}
SCSS
$custom: #1f032d;
$custom-light: #5c4766;
$custom-dark: #000000;
JSON
{
  "hex": "#1f032d",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 45
  },
  "hsl": {
    "h": 280,
    "s": 87.5,
    "l": 9.412
  },
  "oklch": {
    "l": 0.187,
    "c": 0.0832,
    "h": 311.9
  },
  "luminance": 0.00546
}

Semantic roles & 50–950 ramp

primary
#1F032D
secondary
#38711B
accent
#FE2A71
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F032D

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

Preview Lab → · Contrast checker → · Palette generator →

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