#31052F#31052F

#31052F is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.5% C 0.090 H 330.1°. Best body text is #FFFFFF at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#31052F
RGBrgb(49, 5, 47)
HSLhsl(303, 81%, 11%)
HSVhsv(303, 90%, 19%)
CMYKcmyk(0%, 89.8%, 4.1%, 80.8%)
CIE-LABlab(8.71, 27.59, -16.28)
CIE-LCHlch(8.71, 32.03, 329.46°)
OKLaboklab(22.5% 0.0782 -0.045)
OKLCHoklch(22.5% 0.09 330.1)
XYZxyz(1.8340, 0.9669, 2.7788)
Luminance0.0097 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31052F #053107
analogous
#1D0531 #31052F #310519
triadic
#31052F #2F3105 #052F31
tetradic
#31052F #311D05 #053107 #051931
square
#31052F #311D05 #053107 #051931
split-complementary
#31052F #193105 #05311D
monochromatic
#1C031B #1C031B #31052F #690B64 #A0109A

Accessibility & contrast

On white

17.60
#31052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#31052F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31052F
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31052F#FFFFFF#000000##FFFFFF
##31052F1.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011530
Deuteranopia (green-blind)
#121B2E
Tritanopia (blue-blind)
#330B19
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31052f;
/* rgb */ color: rgb(49, 5, 47);
/* oklch */ color: oklch(22.5% 0.090 330.1);
Tailwind
colors: {
  custom: {
    50: '#6b4a67',
    500: '#31052f',
    950: '#000000',
  },
}
SCSS
$custom: #31052f;
$custom-light: #6b4a67;
$custom-dark: #000000;
JSON
{
  "hex": "#31052f",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 302.727,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.22501,
    "c": 0.09017,
    "h": 330.1
  },
  "luminance": 0.00967
}

Semantic roles & 50–950 ramp

primary
#31052F
secondary
#1F7223
accent
#F83930
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31052F

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

Preview Lab → · Contrast checker → · Palette generator →

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