#31073F#31073F

#31073F is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.103 H 315.8°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#31073F
RGBrgb(49, 7, 63)
HSLhsl(285, 80%, 14%)
HSVhsv(285, 89%, 25%)
CMYKcmyk(22.2%, 88.9%, 0%, 75.3%)
CIE-LABlab(10.29, 30.03, -25.37)
CIE-LCHlch(10.29, 39.31, 319.81°)
OKLaboklab(24.01% 0.0737 -0.0716)
OKLCHoklch(24.01% 0.103 315.8)
XYZxyz(2.2397, 1.1639, 4.8083)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31073F #153F07
analogous
#15073F #31073F #3F0731
triadic
#31073F #3F3107 #073F31
tetradic
#31073F #3F1507 #153F07 #07313F
square
#31073F #3F1507 #153F07 #07313F
split-complementary
#31073F #313F07 #073F15
monochromatic
#15031C #15031C #31073F #5C0D76 #8713AD

Accessibility & contrast

On white

17.03
#31073F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31073F
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31073F#FFFFFF#000000##FFFFFF
##31073F1.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A41
Deuteranopia (green-blind)
#061D3E
Tritanopia (blue-blind)
#301423
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #31073f;
/* rgb */ color: rgb(49, 7, 63);
/* oklch */ color: oklch(24.0% 0.103 315.8);
Tailwind
colors: {
  custom: {
    50: '#6c4c74',
    500: '#31073f',
    950: '#000000',
  },
}
SCSS
$custom: #31073f;
$custom-light: #6c4c74;
$custom-dark: #000000;
JSON
{
  "hex": "#31073f",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 63
  },
  "hsl": {
    "h": 285,
    "s": 80,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24009,
    "c": 0.10271,
    "h": 315.8
  },
  "luminance": 0.01164
}

Semantic roles & 50–950 ramp

primary
#31073F
secondary
#3A7E24
accent
#F63163
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #31073F

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

Preview Lab → · Contrast checker → · Palette generator →

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