#31022D#31022D

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

Color values

HEX#31022D
RGBrgb(49, 2, 45)
HSLhsl(305, 92%, 10%)
HSVhsv(305, 96%, 19%)
CMYKcmyk(0%, 95.9%, 8.2%, 80.8%)
CIE-LABlab(8.00, 28.87, -15.91)
CIE-LCHlch(8.00, 32.96, 331.13°)
OKLaboklab(21.95% 0.083 -0.0439)
OKLCHoklch(21.95% 0.094 332.1)
XYZxyz(1.7620, 0.8860, 2.5603)
Luminance0.0089 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31022D #023106
analogous
#1D0231 #31022D #310216
triadic
#31022D #2D3102 #022D31
tetradic
#31022D #311D02 #023106 #021631
square
#31022D #311D02 #023106 #021631
split-complementary
#31022D #163102 #02311D
monochromatic
#1D011B #1D011B #31022D #6C0463 #A70799

Accessibility & contrast

On white

17.84
#31022D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31022D
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31022D#FFFFFF#000000##FFFFFF
##31022D1.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132E
Deuteranopia (green-blind)
#111A2C
Tritanopia (blue-blind)
#340717
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31022d;
/* rgb */ color: rgb(49, 2, 45);
/* oklch */ color: oklch(22.0% 0.094 332.1);
Tailwind
colors: {
  custom: {
    50: '#6c4866',
    500: '#31022d',
    950: '#000000',
  },
}
SCSS
$custom: #31022d;
$custom-light: #6c4866;
$custom-dark: #000000;
JSON
{
  "hex": "#31022d",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 45
  },
  "hsl": {
    "h": 305.106,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.21951,
    "c": 0.09386,
    "h": 332.1
  },
  "luminance": 0.00886
}

Semantic roles & 50–950 ramp

primary
#31022D
secondary
#197521
accent
#FF3B29
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31022D

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

Preview Lab → · Contrast checker → · Palette generator →

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