#31022F#31022F

#31022F is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.1% C 0.096 H 330.2°. Best body text is #FFFFFF at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#31022F
RGBrgb(49, 2, 47)
HSLhsl(303, 92%, 10%)
HSVhsv(303, 96%, 19%)
CMYKcmyk(0%, 95.9%, 4.1%, 80.8%)
CIE-LABlab(8.14, 29.24, -17.18)
CIE-LCHlch(8.14, 33.91, 329.56°)
OKLaboklab(22.1% 0.0829 -0.0476)
OKLCHoklch(22.1% 0.096 330.2)
XYZxyz(1.8014, 0.9018, 2.7680)
Luminance0.0090 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31022F #023104
analogous
#1B0231 #31022F #310218
triadic
#31022F #2F3102 #022F31
tetradic
#31022F #311B02 #023104 #021831
square
#31022F #311B02 #023104 #021831
split-complementary
#31022F #183102 #02311B
monochromatic
#1D011C #1D011C #31022F #6C0467 #A707A0

Accessibility & contrast

On white

17.79
#31022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31022F
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31022F#FFFFFF#000000##FFFFFF
##31022F1.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001430
Deuteranopia (green-blind)
#101A2E
Tritanopia (blue-blind)
#330818
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31022f;
/* rgb */ color: rgb(49, 2, 47);
/* oklch */ color: oklch(22.1% 0.096 330.2);
Tailwind
colors: {
  custom: {
    50: '#6c4967',
    500: '#31022f',
    950: '#000000',
  },
}
SCSS
$custom: #31022f;
$custom-light: #6c4967;
$custom-dark: #000000;
JSON
{
  "hex": "#31022f",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 302.553,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.22097,
    "c": 0.09557,
    "h": 330.2
  },
  "luminance": 0.00902
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31022F

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

Preview Lab → · Contrast checker → · Palette generator →

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