#31073A#31073A

#31073A is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.6% C 0.098 H 319.8°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#31073A
RGBrgb(49, 7, 58)
HSLhsl(289, 78%, 13%)
HSVhsv(289, 88%, 23%)
CMYKcmyk(15.5%, 87.9%, 0%, 77.3%)
CIE-LABlab(9.88, 28.89, -22.45)
CIE-LCHlch(9.88, 36.58, 322.15°)
OKLaboklab(23.59% 0.0745 -0.063)
OKLCHoklch(23.59% 0.098 319.8)
XYZxyz(2.1062, 1.1105, 4.1056)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31073A #103A07
analogous
#17073A #31073A #3A0729
triadic
#31073A #3A3107 #073A31
tetradic
#31073A #3A1707 #103A07 #07293A
square
#31073A #3A1707 #103A07 #07293A
split-complementary
#31073A #293A07 #073A17
monochromatic
#17031B #17031B #31073A #5F0E71 #8D14A7

Accessibility & contrast

On white

17.18
#31073A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#31073A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31073A
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31073A#FFFFFF#000000##FFFFFF
##31073A1.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183B
Deuteranopia (green-blind)
#0B1D39
Tritanopia (blue-blind)
#311120
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #31073a;
/* rgb */ color: rgb(49, 7, 58);
/* oklch */ color: oklch(23.6% 0.098 319.8);
Tailwind
colors: {
  custom: {
    50: '#6b4c70',
    500: '#31073a',
    950: '#000000',
  },
}
SCSS
$custom: #31073a;
$custom-light: #6b4c70;
$custom-dark: #000000;
JSON
{
  "hex": "#31073a",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 58
  },
  "hsl": {
    "h": 289.412,
    "s": 78.462,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23592,
    "c": 0.0976,
    "h": 319.8
  },
  "luminance": 0.0111
}

Semantic roles & 50–950 ramp

primary
#31073A
secondary
#337923
accent
#F53355
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #31073A

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

Preview Lab → · Contrast checker → · Palette generator →

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