#31073E#31073E

#31073E is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.102 H 316.6°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#31073E
RGBrgb(49, 7, 62)
HSLhsl(286, 80%, 14%)
HSVhsv(286, 89%, 24%)
CMYKcmyk(21%, 88.7%, 0%, 75.7%)
CIE-LABlab(10.20, 29.80, -24.79)
CIE-LCHlch(10.20, 38.77, 320.25°)
OKLaboklab(23.92% 0.0739 -0.0699)
OKLCHoklch(23.92% 0.102 316.6)
XYZxyz(2.2120, 1.1528, 4.6625)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31073E #143E07
analogous
#15073E #31073E #3E072F
triadic
#31073E #3E3107 #073E31
tetradic
#31073E #3E1507 #143E07 #072F3E
square
#31073E #3E1507 #143E07 #072F3E
split-complementary
#31073E #2F3E07 #073E15
monochromatic
#16031B #16031B #31073E #5C0D75 #8813AC

Accessibility & contrast

On white

17.06
#31073E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#31073E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31073E
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31073E#FFFFFF#000000##FFFFFF
##31073E1.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193F
Deuteranopia (green-blind)
#071D3D
Tritanopia (blue-blind)
#301322
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #31073e;
/* rgb */ color: rgb(49, 7, 62);
/* oklch */ color: oklch(23.9% 0.102 316.6);
Tailwind
colors: {
  custom: {
    50: '#6c4c74',
    500: '#31073e',
    950: '#000000',
  },
}
SCSS
$custom: #31073e;
$custom-light: #6c4c74;
$custom-dark: #000000;
JSON
{
  "hex": "#31073e",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 62
  },
  "hsl": {
    "h": 285.818,
    "s": 79.71,
    "l": 13.529
  },
  "oklch": {
    "l": 0.23924,
    "c": 0.10168,
    "h": 316.6
  },
  "luminance": 0.01153
}

Semantic roles & 50–950 ramp

primary
#31073E
secondary
#397D24
accent
#F63260
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #31073E

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

Preview Lab → · Contrast checker → · Palette generator →

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