#31052A#31052A

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

Color values

HEX#31052A
RGBrgb(49, 5, 42)
HSLhsl(310, 81%, 11%)
HSVhsv(310, 90%, 19%)
CMYKcmyk(0%, 89.8%, 14.3%, 80.8%)
CIE-LABlab(8.38, 26.64, -13.07)
CIE-LCHlch(8.38, 29.68, 333.88°)
OKLaboklab(22.16% 0.0779 -0.0357)
OKLCHoklch(22.16% 0.086 335.4)
XYZxyz(1.7388, 0.9288, 2.2777)
Luminance0.0093 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31052A #05310C
analogous
#220531 #31052A #310514
triadic
#31052A #2A3105 #052A31
tetradic
#31052A #312205 #05310C #051431
square
#31052A #312205 #05310C #051431
split-complementary
#31052A #143105 #053122
monochromatic
#1C0318 #1C0318 #31052A #690B5A #A01089

Accessibility & contrast

On white

17.71
#31052A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31052A
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31052A#FFFFFF#000000##FFFFFF
##31052A1.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05142B
Deuteranopia (green-blind)
#151B29
Tritanopia (blue-blind)
#340816
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31052a;
/* rgb */ color: rgb(49, 5, 42);
/* oklch */ color: oklch(22.2% 0.086 335.4);
Tailwind
colors: {
  custom: {
    50: '#6b4a63',
    500: '#31052a',
    950: '#000000',
  },
}
SCSS
$custom: #31052a;
$custom-light: #6b4a63;
$custom-dark: #000000;
JSON
{
  "hex": "#31052a",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 42
  },
  "hsl": {
    "h": 309.545,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.22159,
    "c": 0.08573,
    "h": 335.4
  },
  "luminance": 0.00929
}

Semantic roles & 50–950 ramp

primary
#31052A
secondary
#1F722D
accent
#F85030
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #31052A

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

Preview Lab → · Contrast checker → · Palette generator →

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