#31032E#31032E

#31032E is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.2% C 0.093 H 331.1°. Best body text is #FFFFFF at 17.75:1 contrast (WCAG AA passes).

Color values

HEX#31032E
RGBrgb(49, 3, 46)
HSLhsl(304, 88%, 10%)
HSVhsv(304, 94%, 19%)
CMYKcmyk(0%, 93.9%, 6.1%, 80.8%)
CIE-LABlab(8.27, 28.49, -16.24)
CIE-LCHlch(8.27, 32.79, 330.31°)
OKLaboklab(22.16% 0.0813 -0.0448)
OKLCHoklch(22.16% 0.093 331.1)
XYZxyz(1.7923, 0.9155, 2.6665)
Luminance0.0092 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31032E #033106
analogous
#1D0331 #31032E #310317
triadic
#31032E #2E3103 #032E31
tetradic
#31032E #311D03 #033106 #031731
square
#31032E #311D03 #033106 #031731
split-complementary
#31032E #173103 #03311D
monochromatic
#1D021B #1D021B #31032E #6B0764 #A40A9A

Accessibility & contrast

On white

17.75
#31032E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31032E
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31032E#FFFFFF#000000##FFFFFF
##31032E1.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00142F
Deuteranopia (green-blind)
#121A2D
Tritanopia (blue-blind)
#330818
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31032e;
/* rgb */ color: rgb(49, 3, 46);
/* oklch */ color: oklch(22.2% 0.093 331.1);
Tailwind
colors: {
  custom: {
    50: '#6b4967',
    500: '#31032e',
    950: '#000000',
  },
}
SCSS
$custom: #31032e;
$custom-light: #6b4967;
$custom-dark: #000000;
JSON
{
  "hex": "#31032e",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 46
  },
  "hsl": {
    "h": 303.913,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.22161,
    "c": 0.09286,
    "h": 331.1
  },
  "luminance": 0.00915
}

Semantic roles & 50–950 ramp

primary
#31032E
secondary
#1B7421
accent
#FF3729
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31032E

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

Preview Lab → · Contrast checker → · Palette generator →

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