#31052B#31052B

#31052B is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.2% C 0.087 H 334.3°. Best body text is #FFFFFF at 17.69:1 contrast (WCAG AA passes).

Color values

HEX#31052B
RGBrgb(49, 5, 43)
HSLhsl(308, 81%, 11%)
HSVhsv(308, 90%, 19%)
CMYKcmyk(0%, 89.8%, 12.2%, 80.8%)
CIE-LABlab(8.45, 26.83, -13.72)
CIE-LCHlch(8.45, 30.13, 332.92°)
OKLaboklab(22.23% 0.078 -0.0376)
OKLCHoklch(22.23% 0.087 334.3)
XYZxyz(1.7570, 0.9361, 2.3732)
Luminance0.0094 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31052B #05310B
analogous
#210531 #31052B #310515
triadic
#31052B #2B3105 #052B31
tetradic
#31052B #312105 #05310B #051531
square
#31052B #312105 #05310B #051531
split-complementary
#31052B #153105 #053121
monochromatic
#1C0318 #1C0318 #31052B #690B5C #A0108C

Accessibility & contrast

On white

17.69
#31052B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31052B
17.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31052B#FFFFFF#000000##FFFFFF
##31052B1.0017.691.1917.69
#FFFFFF17.691.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04142C
Deuteranopia (green-blind)
#141B2A
Tritanopia (blue-blind)
#340817
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31052b;
/* rgb */ color: rgb(49, 5, 43);
/* oklch */ color: oklch(22.2% 0.087 334.3);
Tailwind
colors: {
  custom: {
    50: '#6b4a64',
    500: '#31052b',
    950: '#000000',
  },
}
SCSS
$custom: #31052b;
$custom-light: #6b4a64;
$custom-dark: #000000;
JSON
{
  "hex": "#31052b",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 43
  },
  "hsl": {
    "h": 308.182,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.22225,
    "c": 0.0866,
    "h": 334.3
  },
  "luminance": 0.00936
}

Semantic roles & 50–950 ramp

primary
#31052B
secondary
#1F722B
accent
#F84B30
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31052B

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

Preview Lab → · Contrast checker → · Palette generator →

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