#31073B#31073B

#31073B is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.099 H 319.0°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#31073B
RGBrgb(49, 7, 59)
HSLhsl(288, 79%, 13%)
HSVhsv(288, 88%, 23%)
CMYKcmyk(16.9%, 88.1%, 0%, 76.9%)
CIE-LABlab(9.96, 29.11, -23.04)
CIE-LCHlch(9.96, 37.13, 321.65°)
OKLaboklab(23.67% 0.0744 -0.0647)
OKLCHoklch(23.67% 0.099 319)
XYZxyz(2.1319, 1.1208, 4.2409)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31073B #113B07
analogous
#17073B #31073B #3B072B
triadic
#31073B #3B3107 #073B31
tetradic
#31073B #3B1707 #113B07 #072B3B
square
#31073B #3B1707 #113B07 #072B3B
split-complementary
#31073B #2B3B07 #073B17
monochromatic
#17031B #17031B #31073B #5E0D72 #8C14A8

Accessibility & contrast

On white

17.15
#31073B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31073B
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31073B#FFFFFF#000000##FFFFFF
##31073B1.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193C
Deuteranopia (green-blind)
#0A1D3A
Tritanopia (blue-blind)
#311221
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #31073b;
/* rgb */ color: rgb(49, 7, 59);
/* oklch */ color: oklch(23.7% 0.099 319.0);
Tailwind
colors: {
  custom: {
    50: '#6b4c71',
    500: '#31073b',
    950: '#000000',
  },
}
SCSS
$custom: #31073b;
$custom-light: #6b4c71;
$custom-dark: #000000;
JSON
{
  "hex": "#31073b",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 59
  },
  "hsl": {
    "h": 288.462,
    "s": 78.788,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23673,
    "c": 0.09861,
    "h": 319
  },
  "luminance": 0.01121
}

Semantic roles & 50–950 ramp

primary
#31073B
secondary
#347A23
accent
#F53358
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #31073B

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

Preview Lab → · Contrast checker → · Palette generator →

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