#31072C#31072C

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

Color values

HEX#31072C
RGBrgb(49, 7, 44)
HSLhsl(307, 75%, 11%)
HSVhsv(307, 86%, 19%)
CMYKcmyk(0%, 85.7%, 10.2%, 80.8%)
CIE-LABlab(8.88, 25.96, -13.78)
CIE-LCHlch(8.88, 29.39, 332.04°)
OKLaboklab(22.56% 0.075 -0.0378)
OKLCHoklch(22.56% 0.084 333.3)
XYZxyz(1.7972, 0.9869, 2.4782)
Luminance0.0099 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31072C #07310C
analogous
#210731 #31072C #310717
triadic
#31072C #2C3107 #072C31
tetradic
#31072C #312107 #07310C #071731
square
#31072C #312107 #07310C #071731
split-complementary
#31072C #173107 #073121
monochromatic
#1B0418 #1B0418 #31072C #670F5C #9C168C

Accessibility & contrast

On white

17.54
#31072C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31072C
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31072C#FFFFFF#000000##FFFFFF
##31072C1.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06152D
Deuteranopia (green-blind)
#151B2B
Tritanopia (blue-blind)
#340B18
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31072c;
/* rgb */ color: rgb(49, 7, 44);
/* oklch */ color: oklch(22.6% 0.084 333.3);
Tailwind
colors: {
  custom: {
    50: '#6b4b65',
    500: '#31072c',
    950: '#000000',
  },
}
SCSS
$custom: #31072c;
$custom-light: #6b4b65;
$custom-dark: #000000;
JSON
{
  "hex": "#31072c",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 44
  },
  "hsl": {
    "h": 307.143,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.22558,
    "c": 0.08396,
    "h": 333.3
  },
  "luminance": 0.00987
}

Semantic roles & 50–950 ramp

primary
#31072C
secondary
#23712C
accent
#F24D36
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31072C

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

Preview Lab → · Contrast checker → · Palette generator →

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