#31032C#31032C

#31032C is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.0% C 0.091 H 333.2°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#31032C
RGBrgb(49, 3, 44)
HSLhsl(307, 88%, 10%)
HSVhsv(307, 94%, 19%)
CMYKcmyk(0%, 93.9%, 10.2%, 80.8%)
CIE-LABlab(8.13, 28.12, -14.97)
CIE-LCHlch(8.13, 31.85, 331.97°)
OKLaboklab(22.02% 0.0813 -0.0412)
OKLCHoklch(22.02% 0.091 333.2)
XYZxyz(1.7538, 0.9001, 2.4638)
Luminance0.0090 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31032C #033108
analogous
#1F0331 #31032C #310315
triadic
#31032C #2C3103 #032C31
tetradic
#31032C #311F03 #033108 #031531
square
#31032C #311F03 #033108 #031531
split-complementary
#31032C #153103 #03311F
monochromatic
#1D021A #1D021A #31032C #6B0760 #A40A94

Accessibility & contrast

On white

17.80
#31032C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31032C
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31032C#FFFFFF#000000##FFFFFF
##31032C1.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02132D
Deuteranopia (green-blind)
#131A2B
Tritanopia (blue-blind)
#340717
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31032c;
/* rgb */ color: rgb(49, 3, 44);
/* oklch */ color: oklch(22.0% 0.091 333.2);
Tailwind
colors: {
  custom: {
    50: '#6b4965',
    500: '#31032c',
    950: '#000000',
  },
}
SCSS
$custom: #31032c;
$custom-light: #6b4965;
$custom-dark: #000000;
JSON
{
  "hex": "#31032c",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 44
  },
  "hsl": {
    "h": 306.522,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.22019,
    "c": 0.09113,
    "h": 333.2
  },
  "luminance": 0.009
}

Semantic roles & 50–950 ramp

primary
#31032C
secondary
#1B7425
accent
#FF4029
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31032C

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

Preview Lab → · Contrast checker → · Palette generator →

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