#31072B#31072B

#31072B is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.5% C 0.083 H 334.4°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#31072B
RGBrgb(49, 7, 43)
HSLhsl(309, 75%, 11%)
HSVhsv(309, 86%, 19%)
CMYKcmyk(0%, 85.7%, 12.2%, 80.8%)
CIE-LABlab(8.82, 25.77, -13.13)
CIE-LCHlch(8.82, 28.92, 333.00°)
OKLaboklab(22.49% 0.0749 -0.0359)
OKLCHoklch(22.49% 0.083 334.4)
XYZxyz(1.7787, 0.9795, 2.3804)
Luminance0.0098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31072B #07310D
analogous
#220731 #31072B #310716
triadic
#31072B #2B3107 #072B31
tetradic
#31072B #312207 #07310D #071631
square
#31072B #312207 #07310D #071631
split-complementary
#31072B #163107 #073122
monochromatic
#1B0417 #1B0417 #31072B #670F5A #9C1689

Accessibility & contrast

On white

17.56
#31072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#31072B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31072B
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31072B#FFFFFF#000000##FFFFFF
##31072B1.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06152C
Deuteranopia (green-blind)
#151B2A
Tritanopia (blue-blind)
#340A18
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31072b;
/* rgb */ color: rgb(49, 7, 43);
/* oklch */ color: oklch(22.5% 0.083 334.4);
Tailwind
colors: {
  custom: {
    50: '#6b4b64',
    500: '#31072b',
    950: '#000000',
  },
}
SCSS
$custom: #31072b;
$custom-light: #6b4b64;
$custom-dark: #000000;
JSON
{
  "hex": "#31072b",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 308.571,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.22493,
    "c": 0.08306,
    "h": 334.4
  },
  "luminance": 0.00979
}

Semantic roles & 50–950 ramp

primary
#31072B
secondary
#23712E
accent
#F25136
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31072B

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

Preview Lab → · Contrast checker → · Palette generator →

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