#31072F#31072F

#31072F is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.8% C 0.087 H 330.0°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#31072F
RGBrgb(49, 7, 47)
HSLhsl(303, 75%, 11%)
HSVhsv(303, 86%, 19%)
CMYKcmyk(0%, 85.7%, 4.1%, 80.8%)
CIE-LABlab(9.08, 26.55, -15.70)
CIE-LCHlch(9.08, 30.84, 329.40°)
OKLaboklab(22.76% 0.0752 -0.0433)
OKLCHoklch(22.76% 0.087 330)
XYZxyz(1.8557, 1.0103, 2.7860)
Luminance0.0101 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31072F #073109
analogous
#1E0731 #31072F #31071A
triadic
#31072F #2F3107 #072F31
tetradic
#31072F #311E07 #073109 #071A31
square
#31072F #311E07 #073109 #071A31
split-complementary
#31072F #1A3107 #07311E
monochromatic
#1B041A #1B041A #31072F #670F62 #9C1696

Accessibility & contrast

On white

17.47
#31072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31072F
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31072F#FFFFFF#000000##FFFFFF
##31072F1.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041630
Deuteranopia (green-blind)
#131C2E
Tritanopia (blue-blind)
#330C1A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #31072f;
/* rgb */ color: rgb(49, 7, 47);
/* oklch */ color: oklch(22.8% 0.087 330.0);
Tailwind
colors: {
  custom: {
    50: '#6b4b67',
    500: '#31072f',
    950: '#000000',
  },
}
SCSS
$custom: #31072f;
$custom-light: #6b4b67;
$custom-dark: #000000;
JSON
{
  "hex": "#31072f",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 302.857,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.22762,
    "c": 0.08676,
    "h": 330
  },
  "luminance": 0.0101
}

Semantic roles & 50–950 ramp

primary
#31072F
secondary
#237127
accent
#F23F36
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31072F

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

Preview Lab → · Contrast checker → · Palette generator →

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