#31073C#31073C

#31073C is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.8% C 0.100 H 318.2°. Best body text is #FFFFFF at 17.13:1 contrast (WCAG AA passes).

Color values

HEX#31073C
RGBrgb(49, 7, 60)
HSLhsl(288, 79%, 13%)
HSVhsv(288, 88%, 24%)
CMYKcmyk(18.3%, 88.3%, 0%, 76.5%)
CIE-LABlab(10.04, 29.34, -23.62)
CIE-LCHlch(10.04, 37.67, 321.16°)
OKLaboklab(23.76% 0.0742 -0.0664)
OKLCHoklch(23.76% 0.1 318.2)
XYZxyz(2.1581, 1.1313, 4.3788)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31073C #123C07
analogous
#16073C #31073C #3C072C
triadic
#31073C #3C3107 #073C31
tetradic
#31073C #3C1607 #123C07 #072C3C
square
#31073C #3C1607 #123C07 #072C3C
split-complementary
#31073C #2C3C07 #073C16
monochromatic
#16031B #16031B #31073C #5E0D73 #8B14AA

Accessibility & contrast

On white

17.13
#31073C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31073C
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31073C#FFFFFF#000000##FFFFFF
##31073C1.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193D
Deuteranopia (green-blind)
#091D3B
Tritanopia (blue-blind)
#311221
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #31073c;
/* rgb */ color: rgb(49, 7, 60);
/* oklch */ color: oklch(23.8% 0.100 318.2);
Tailwind
colors: {
  custom: {
    50: '#6c4c72',
    500: '#31073c',
    950: '#000000',
  },
}
SCSS
$custom: #31073c;
$custom-light: #6c4c72;
$custom-dark: #000000;
JSON
{
  "hex": "#31073c",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 60
  },
  "hsl": {
    "h": 287.547,
    "s": 79.104,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23756,
    "c": 0.09963,
    "h": 318.2
  },
  "luminance": 0.01131
}

Semantic roles & 50–950 ramp

primary
#31073C
secondary
#367B23
accent
#F6325B
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070108
muted
#7A777B

Preview Lab

Preview with #31073C

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

Preview Lab → · Contrast checker → · Palette generator →

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