#31032D#31032D

#31032D is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.1% C 0.092 H 332.1°. Best body text is #FFFFFF at 17.77:1 contrast (WCAG AA passes).

Color values

HEX#31032D
RGBrgb(49, 3, 45)
HSLhsl(305, 88%, 10%)
HSVhsv(305, 94%, 19%)
CMYKcmyk(0%, 93.9%, 8.2%, 80.8%)
CIE-LABlab(8.20, 28.30, -15.61)
CIE-LCHlch(8.20, 32.32, 331.13°)
OKLaboklab(22.09% 0.0813 -0.043)
OKLCHoklch(22.09% 0.092 332.1)
XYZxyz(1.7728, 0.9077, 2.5639)
Luminance0.0091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31032D #033107
analogous
#1E0331 #31032D #310316
triadic
#31032D #2D3103 #032D31
tetradic
#31032D #311E03 #033107 #031631
square
#31032D #311E03 #033107 #031631
split-complementary
#31032D #163103 #03311E
monochromatic
#1D021A #1D021A #31032D #6B0762 #A40A97

Accessibility & contrast

On white

17.77
#31032D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31032D
17.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31032D#FFFFFF#000000##FFFFFF
##31032D1.0017.771.1817.77
#FFFFFF17.771.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01142E
Deuteranopia (green-blind)
#121A2C
Tritanopia (blue-blind)
#340817
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31032d;
/* rgb */ color: rgb(49, 3, 45);
/* oklch */ color: oklch(22.1% 0.092 332.1);
Tailwind
colors: {
  custom: {
    50: '#6b4966',
    500: '#31032d',
    950: '#000000',
  },
}
SCSS
$custom: #31032d;
$custom-light: #6b4966;
$custom-dark: #000000;
JSON
{
  "hex": "#31032d",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 45
  },
  "hsl": {
    "h": 305.217,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.2209,
    "c": 0.09199,
    "h": 332.1
  },
  "luminance": 0.00908
}

Semantic roles & 50–950 ramp

primary
#31032D
secondary
#1B7423
accent
#FF3C29
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31032D

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

Preview Lab → · Contrast checker → · Palette generator →

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