#31022B#31022B

#31022B is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.8% C 0.092 H 334.2°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#31022B
RGBrgb(49, 2, 43)
HSLhsl(308, 92%, 10%)
HSVhsv(308, 96%, 19%)
CMYKcmyk(0%, 95.9%, 12.2%, 80.8%)
CIE-LABlab(7.87, 28.50, -14.63)
CIE-LCHlch(7.87, 32.04, 332.83°)
OKLaboklab(21.81% 0.083 -0.0402)
OKLCHoklch(21.81% 0.092 334.2)
XYZxyz(1.7244, 0.8710, 2.3623)
Luminance0.0087 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31022B #023108
analogous
#200231 #31022B #310213
triadic
#31022B #2B3102 #022B31
tetradic
#31022B #312002 #023108 #021331
square
#31022B #312002 #023108 #021331
split-complementary
#31022B #133102 #023120
monochromatic
#1D011A #1D011A #31022B #6C045F #A70792

Accessibility & contrast

On white

17.88
#31022B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#31022B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31022B
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31022B#FFFFFF#000000##FFFFFF
##31022B1.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01132C
Deuteranopia (green-blind)
#131A2A
Tritanopia (blue-blind)
#340616
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31022b;
/* rgb */ color: rgb(49, 2, 43);
/* oklch */ color: oklch(21.8% 0.092 334.2);
Tailwind
colors: {
  custom: {
    50: '#6c4864',
    500: '#31022b',
    950: '#000000',
  },
}
SCSS
$custom: #31022b;
$custom-light: #6c4864;
$custom-dark: #000000;
JSON
{
  "hex": "#31022b",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 43
  },
  "hsl": {
    "h": 307.66,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.2181,
    "c": 0.0922,
    "h": 334.2
  },
  "luminance": 0.00871
}

Semantic roles & 50–950 ramp

primary
#31022B
secondary
#197525
accent
#FF4429
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31022B

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

Preview Lab → · Contrast checker → · Palette generator →

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