#1F032B#1F032B

#1F032B is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.5% C 0.081 H 313.8°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#1F032B
RGBrgb(31, 3, 43)
HSLhsl(282, 87%, 9%)
HSVhsv(282, 93%, 17%)
CMYKcmyk(27.9%, 93%, 0%, 83.1%)
CIE-LABlab(4.80, 21.14, -19.70)
CIE-LCHlch(4.80, 28.89, 317.02°)
OKLaboklab(18.51% 0.0561 -0.0584)
OKLCHoklch(18.51% 0.081 313.8)
XYZxyz(1.0336, 0.5309, 2.3331)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F032B #0F2B03
analogous
#0B032B #1F032B #2B0323
triadic
#1F032B #2B1F03 #032B1F
tetradic
#1F032B #2B0B03 #0F2B03 #03232B
square
#1F032B #2B0B03 #0F2B03 #03232B
split-complementary
#1F032B #232B03 #032B0B
monochromatic
#15021D #15021D #1F032B #480764 #710B9D

Accessibility & contrast

On white

18.98
#1F032B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F032B
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F032B#FFFFFF#000000##FFFFFF
##1F032B1.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2C
Deuteranopia (green-blind)
#01112A
Tritanopia (blue-blind)
#1E0B16
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1f032b;
/* rgb */ color: rgb(31, 3, 43);
/* oklch */ color: oklch(18.5% 0.081 313.8);
Tailwind
colors: {
  custom: {
    50: '#5c4764',
    500: '#1f032b',
    950: '#000000',
  },
}
SCSS
$custom: #1f032b;
$custom-light: #5c4764;
$custom-dark: #000000;
JSON
{
  "hex": "#1f032b",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 43
  },
  "hsl": {
    "h": 282,
    "s": 86.957,
    "l": 9.02
  },
  "oklch": {
    "l": 0.18508,
    "c": 0.08097,
    "h": 313.8
  },
  "luminance": 0.00531
}

Semantic roles & 50–950 ramp

primary
#1F032B
secondary
#346F1B
accent
#FD2B6A
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1F032B

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

Preview Lab → · Contrast checker → · Palette generator →

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