#31052C#31052C

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

Color values

HEX#31052C
RGBrgb(49, 5, 44)
HSLhsl(307, 81%, 11%)
HSVhsv(307, 90%, 19%)
CMYKcmyk(0%, 89.8%, 10.2%, 80.8%)
CIE-LABlab(8.51, 27.01, -14.36)
CIE-LCHlch(8.51, 30.59, 332.00°)
OKLaboklab(22.29% 0.0781 -0.0394)
OKLCHoklch(22.29% 0.087 333.2)
XYZxyz(1.7755, 0.9435, 2.4710)
Luminance0.0094 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31052C #05310A
analogous
#200531 #31052C #310516
triadic
#31052C #2C3105 #052C31
tetradic
#31052C #312005 #05310A #051631
square
#31052C #312005 #05310A #051631
split-complementary
#31052C #163105 #053120
monochromatic
#1C0319 #1C0319 #31052C #690B5E #A01090

Accessibility & contrast

On white

17.67
#31052C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31052C
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31052C#FFFFFF#000000##FFFFFF
##31052C1.0017.671.1917.67
#FFFFFF17.671.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04142D
Deuteranopia (green-blind)
#141B2B
Tritanopia (blue-blind)
#340918
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31052c;
/* rgb */ color: rgb(49, 5, 44);
/* oklch */ color: oklch(22.3% 0.087 333.2);
Tailwind
colors: {
  custom: {
    50: '#6b4a65',
    500: '#31052c',
    950: '#000000',
  },
}
SCSS
$custom: #31052c;
$custom-light: #6b4a65;
$custom-dark: #000000;
JSON
{
  "hex": "#31052c",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 44
  },
  "hsl": {
    "h": 306.818,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.22292,
    "c": 0.08748,
    "h": 333.2
  },
  "luminance": 0.00943
}

Semantic roles & 50–950 ramp

primary
#31052C
secondary
#1F7229
accent
#F84730
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31052C

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

Preview Lab → · Contrast checker → · Palette generator →

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