#31032B#31032B

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

Color values

HEX#31032B
RGBrgb(49, 3, 43)
HSLhsl(308, 88%, 10%)
HSVhsv(308, 94%, 19%)
CMYKcmyk(0%, 93.9%, 12.2%, 80.8%)
CIE-LABlab(8.06, 27.94, -14.32)
CIE-LCHlch(8.06, 31.39, 332.86°)
OKLaboklab(21.95% 0.0813 -0.0393)
OKLCHoklch(21.95% 0.09 334.2)
XYZxyz(1.7353, 0.8927, 2.3659)
Luminance0.0089 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31032B #033109
analogous
#200331 #31032B #310314
triadic
#31032B #2B3103 #032B31
tetradic
#31032B #312003 #033109 #031431
square
#31032B #312003 #033109 #031431
split-complementary
#31032B #143103 #033120
monochromatic
#1D0219 #1D0219 #31032B #6B075E #A40A90

Accessibility & contrast

On white

17.82
#31032B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31032B
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31032B#FFFFFF#000000##FFFFFF
##31032B1.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02132C
Deuteranopia (green-blind)
#131A2A
Tritanopia (blue-blind)
#340716
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31032b;
/* rgb */ color: rgb(49, 3, 43);
/* oklch */ color: oklch(21.9% 0.090 334.2);
Tailwind
colors: {
  custom: {
    50: '#6b4964',
    500: '#31032b',
    950: '#000000',
  },
}
SCSS
$custom: #31032b;
$custom-light: #6b4964;
$custom-dark: #000000;
JSON
{
  "hex": "#31032b",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 43
  },
  "hsl": {
    "h": 307.826,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.2195,
    "c": 0.09029,
    "h": 334.2
  },
  "luminance": 0.00893
}

Semantic roles & 50–950 ramp

primary
#31032B
secondary
#1B7427
accent
#FF4529
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31032B

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

Preview Lab → · Contrast checker → · Palette generator →

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