#31072E#31072E

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

Color values

HEX#31072E
RGBrgb(49, 7, 46)
HSLhsl(304, 75%, 11%)
HSVhsv(304, 86%, 19%)
CMYKcmyk(0%, 85.7%, 6.1%, 80.8%)
CIE-LABlab(9.01, 26.35, -15.06)
CIE-LCHlch(9.01, 30.35, 330.24°)
OKLaboklab(22.69% 0.0751 -0.0415)
OKLCHoklch(22.69% 0.086 331.1)
XYZxyz(1.8357, 1.0023, 2.6810)
Luminance0.0100 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31072E #07310A
analogous
#1F0731 #31072E #310719
triadic
#31072E #2E3107 #072E31
tetradic
#31072E #311F07 #07310A #071931
square
#31072E #311F07 #07310A #071931
split-complementary
#31072E #193107 #07311F
monochromatic
#1B0419 #1B0419 #31072E #670F60 #9C1693

Accessibility & contrast

On white

17.49
#31072E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31072E
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31072E#FFFFFF#000000##FFFFFF
##31072E1.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04162F
Deuteranopia (green-blind)
#141C2D
Tritanopia (blue-blind)
#330C19
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31072e;
/* rgb */ color: rgb(49, 7, 46);
/* oklch */ color: oklch(22.7% 0.086 331.1);
Tailwind
colors: {
  custom: {
    50: '#6b4b67',
    500: '#31072e',
    950: '#000000',
  },
}
SCSS
$custom: #31072e;
$custom-light: #6b4b67;
$custom-dark: #000000;
JSON
{
  "hex": "#31072e",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 46
  },
  "hsl": {
    "h": 304.286,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.22693,
    "c": 0.08582,
    "h": 331.1
  },
  "luminance": 0.01002
}

Semantic roles & 50–950 ramp

primary
#31072E
secondary
#237129
accent
#F24436
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31072E

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

Preview Lab → · Contrast checker → · Palette generator →

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