#31022E#31022E

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

Color values

HEX#31022E
RGBrgb(49, 2, 46)
HSLhsl(304, 92%, 10%)
HSVhsv(304, 96%, 19%)
CMYKcmyk(0%, 95.9%, 6.1%, 80.8%)
CIE-LABlab(8.07, 29.05, -16.55)
CIE-LCHlch(8.07, 33.43, 330.33°)
OKLaboklab(22.02% 0.0829 -0.0457)
OKLCHoklch(22.02% 0.095 331.1)
XYZxyz(1.7815, 0.8938, 2.6629)
Luminance0.0089 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31022E #023105
analogous
#1D0231 #31022E #310216
triadic
#31022E #2E3102 #022E31
tetradic
#31022E #311D02 #023105 #021631
square
#31022E #311D02 #023105 #021631
split-complementary
#31022E #163102 #02311D
monochromatic
#1D011C #1D011C #31022E #6C0465 #A7079C

Accessibility & contrast

On white

17.81
#31022E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31022E
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31022E#FFFFFF#000000##FFFFFF
##31022E1.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132F
Deuteranopia (green-blind)
#111A2D
Tritanopia (blue-blind)
#330718
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31022e;
/* rgb */ color: rgb(49, 2, 46);
/* oklch */ color: oklch(22.0% 0.095 331.1);
Tailwind
colors: {
  custom: {
    50: '#6c4867',
    500: '#31022e',
    950: '#000000',
  },
}
SCSS
$custom: #31022e;
$custom-light: #6c4867;
$custom-dark: #000000;
JSON
{
  "hex": "#31022e",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 46
  },
  "hsl": {
    "h": 303.83,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.22024,
    "c": 0.09471,
    "h": 331.1
  },
  "luminance": 0.00894
}

Semantic roles & 50–950 ramp

primary
#31022E
secondary
#19751F
accent
#FF3629
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31022E

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

Preview Lab → · Contrast checker → · Palette generator →

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