#31022C#31022C

#31022C is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.9% C 0.093 H 333.1°. Best body text is #FFFFFF at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#31022C
RGBrgb(49, 2, 44)
HSLhsl(306, 92%, 10%)
HSVhsv(306, 96%, 19%)
CMYKcmyk(0%, 95.9%, 10.2%, 80.8%)
CIE-LABlab(7.93, 28.69, -15.27)
CIE-LCHlch(7.93, 32.50, 331.97°)
OKLaboklab(21.88% 0.083 -0.042)
OKLCHoklch(21.88% 0.093 333.1)
XYZxyz(1.7430, 0.8784, 2.4601)
Luminance0.0088 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31022C #023107
analogous
#1F0231 #31022C #310214
triadic
#31022C #2C3102 #022C31
tetradic
#31022C #311F02 #023107 #021431
square
#31022C #311F02 #023107 #021431
split-complementary
#31022C #143102 #02311F
monochromatic
#1D011A #1D011A #31022C #6C0461 #A70796

Accessibility & contrast

On white

17.86
#31022C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31022C
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31022C#FFFFFF#000000##FFFFFF
##31022C1.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01132D
Deuteranopia (green-blind)
#121A2B
Tritanopia (blue-blind)
#340616
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31022c;
/* rgb */ color: rgb(49, 2, 44);
/* oklch */ color: oklch(21.9% 0.093 333.1);
Tailwind
colors: {
  custom: {
    50: '#6c4865',
    500: '#31022c',
    950: '#000000',
  },
}
SCSS
$custom: #31022c;
$custom-light: #6c4865;
$custom-dark: #000000;
JSON
{
  "hex": "#31022c",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 44
  },
  "hsl": {
    "h": 306.383,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.2188,
    "c": 0.09303,
    "h": 333.1
  },
  "luminance": 0.00878
}

Semantic roles & 50–950 ramp

primary
#31022C
secondary
#197523
accent
#FF4029
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31022C

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

Preview Lab → · Contrast checker → · Palette generator →

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