#1F032C#1F032C

#1F032C is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.6% C 0.082 H 312.8°. Best body text is #FFFFFF at 18.96:1 contrast (WCAG AA passes).

Color values

HEX#1F032C
RGBrgb(31, 3, 44)
HSLhsl(281, 87%, 9%)
HSVhsv(281, 93%, 17%)
CMYKcmyk(29.5%, 93.2%, 0%, 82.7%)
CIE-LABlab(4.86, 21.51, -20.35)
CIE-LCHlch(4.86, 29.61, 316.59°)
OKLaboklab(18.6% 0.0558 -0.0602)
OKLCHoklch(18.6% 0.082 312.8)
XYZxyz(1.0522, 0.5383, 2.4309)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F032C #102C03
analogous
#0B032C #1F032C #2C0325
triadic
#1F032C #2C1F03 #032C1F
tetradic
#1F032C #2C0B03 #102C03 #03252C
square
#1F032C #2C0B03 #102C03 #03252C
split-complementary
#1F032C #252C03 #032C0B
monochromatic
#14021D #14021D #1F032C #470765 #700B9F

Accessibility & contrast

On white

18.96
#1F032C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F032C
18.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F032C#FFFFFF#000000##FFFFFF
##1F032C1.0018.961.1118.96
#FFFFFF18.961.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2D
Deuteranopia (green-blind)
#00112B
Tritanopia (blue-blind)
#1D0B17
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1f032c;
/* rgb */ color: rgb(31, 3, 44);
/* oklch */ color: oklch(18.6% 0.082 312.8);
Tailwind
colors: {
  custom: {
    50: '#5c4765',
    500: '#1f032c',
    950: '#000000',
  },
}
SCSS
$custom: #1f032c;
$custom-light: #5c4765;
$custom-dark: #000000;
JSON
{
  "hex": "#1f032c",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 44
  },
  "hsl": {
    "h": 280.976,
    "s": 87.234,
    "l": 9.216
  },
  "oklch": {
    "l": 0.18603,
    "c": 0.08208,
    "h": 312.8
  },
  "luminance": 0.00538
}

Semantic roles & 50–950 ramp

primary
#1F032C
secondary
#36701B
accent
#FD2A6D
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1F032C

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

Preview Lab → · Contrast checker → · Palette generator →

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