#31072D#31072D

#31072D is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.6% C 0.085 H 332.2°. Best body text is #FFFFFF at 17.52:1 contrast (WCAG AA passes).

Color values

HEX#31072D
RGBrgb(49, 7, 45)
HSLhsl(306, 75%, 11%)
HSVhsv(306, 86%, 19%)
CMYKcmyk(0%, 85.7%, 8.2%, 80.8%)
CIE-LABlab(8.95, 26.15, -14.42)
CIE-LCHlch(8.95, 29.87, 331.12°)
OKLaboklab(22.63% 0.0751 -0.0396)
OKLCHoklch(22.63% 0.085 332.2)
XYZxyz(1.8163, 0.9945, 2.5784)
Luminance0.0099 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31072D #07310B
analogous
#200731 #31072D #310718
triadic
#31072D #2D3107 #072D31
tetradic
#31072D #312007 #07310B #071831
square
#31072D #312007 #07310B #071831
split-complementary
#31072D #183107 #073120
monochromatic
#1B0419 #1B0419 #31072D #670F5E #9C168F

Accessibility & contrast

On white

17.52
#31072D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31072D
17.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31072D#FFFFFF#000000##FFFFFF
##31072D1.0017.521.2017.52
#FFFFFF17.521.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05162E
Deuteranopia (green-blind)
#141B2C
Tritanopia (blue-blind)
#330B19
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31072d;
/* rgb */ color: rgb(49, 7, 45);
/* oklch */ color: oklch(22.6% 0.085 332.2);
Tailwind
colors: {
  custom: {
    50: '#6b4b66',
    500: '#31072d',
    950: '#000000',
  },
}
SCSS
$custom: #31072d;
$custom-light: #6b4b66;
$custom-dark: #000000;
JSON
{
  "hex": "#31072d",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 45
  },
  "hsl": {
    "h": 305.714,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.22625,
    "c": 0.08488,
    "h": 332.2
  },
  "luminance": 0.00994
}

Semantic roles & 50–950 ramp

primary
#31072D
secondary
#23712A
accent
#F24836
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31072D

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

Preview Lab → · Contrast checker → · Palette generator →

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