#31052E#31052E

#31052E is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.4% C 0.089 H 331.1°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#31052E
RGBrgb(49, 5, 46)
HSLhsl(304, 81%, 11%)
HSVhsv(304, 90%, 19%)
CMYKcmyk(0%, 89.8%, 6.1%, 80.8%)
CIE-LABlab(8.64, 27.39, -15.64)
CIE-LCHlch(8.64, 31.55, 330.27°)
OKLaboklab(22.43% 0.0782 -0.0431)
OKLCHoklch(22.43% 0.089 331.1)
XYZxyz(1.8140, 0.9589, 2.6738)
Luminance0.0096 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31052E #053108
analogous
#1E0531 #31052E #310518
triadic
#31052E #2E3105 #052E31
tetradic
#31052E #311E05 #053108 #051831
square
#31052E #311E05 #053108 #051831
split-complementary
#31052E #183105 #05311E
monochromatic
#1C031A #1C031A #31052E #690B62 #A01096

Accessibility & contrast

On white

17.62
#31052E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31052E
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31052E#FFFFFF#000000##FFFFFF
##31052E1.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02152F
Deuteranopia (green-blind)
#131B2D
Tritanopia (blue-blind)
#330A19
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31052e;
/* rgb */ color: rgb(49, 5, 46);
/* oklch */ color: oklch(22.4% 0.089 331.1);
Tailwind
colors: {
  custom: {
    50: '#6b4a67',
    500: '#31052e',
    950: '#000000',
  },
}
SCSS
$custom: #31052e;
$custom-light: #6b4a67;
$custom-dark: #000000;
JSON
{
  "hex": "#31052e",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 46
  },
  "hsl": {
    "h": 304.091,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.2243,
    "c": 0.08927,
    "h": 331.1
  },
  "luminance": 0.00959
}

Semantic roles & 50–950 ramp

primary
#31052E
secondary
#1F7225
accent
#F83E30
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31052E

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

Preview Lab → · Contrast checker → · Palette generator →

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