#31032A#31032A

#31032A is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.9% C 0.089 H 335.3°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#31032A
RGBrgb(49, 3, 42)
HSLhsl(309, 88%, 10%)
HSVhsv(309, 94%, 19%)
CMYKcmyk(0%, 93.9%, 14.3%, 80.8%)
CIE-LABlab(8.00, 27.76, -13.67)
CIE-LCHlch(8.00, 30.94, 333.77°)
OKLaboklab(21.88% 0.0813 -0.0374)
OKLCHoklch(21.88% 0.089 335.3)
XYZxyz(1.7171, 0.8854, 2.2705)
Luminance0.0089 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31032A #03310A
analogous
#210331 #31032A #310313
triadic
#31032A #2A3103 #032A31
tetradic
#31032A #312103 #03310A #031331
square
#31032A #312103 #03310A #031331
split-complementary
#31032A #133103 #033121
monochromatic
#1D0219 #1D0219 #31032A #6B075B #A40A8D

Accessibility & contrast

On white

17.84
#31032A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#31032A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31032A
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31032A#FFFFFF#000000##FFFFFF
##31032A1.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03132B
Deuteranopia (green-blind)
#141A29
Tritanopia (blue-blind)
#340616
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31032a;
/* rgb */ color: rgb(49, 3, 42);
/* oklch */ color: oklch(21.9% 0.089 335.3);
Tailwind
colors: {
  custom: {
    50: '#6b4963',
    500: '#31032a',
    950: '#000000',
  },
}
SCSS
$custom: #31032a;
$custom-light: #6b4963;
$custom-dark: #000000;
JSON
{
  "hex": "#31032a",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 42
  },
  "hsl": {
    "h": 309.13,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.21883,
    "c": 0.08946,
    "h": 335.3
  },
  "luminance": 0.00885
}

Semantic roles & 50–950 ramp

primary
#31032A
secondary
#1B7429
accent
#FF4A29
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #31032A

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

Preview Lab → · Contrast checker → · Palette generator →

#31032A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva