#31073D#31073D

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

Color values

HEX#31073D
RGBrgb(49, 7, 61)
HSLhsl(287, 79%, 13%)
HSVhsv(287, 89%, 24%)
CMYKcmyk(19.7%, 88.5%, 0%, 76.1%)
CIE-LABlab(10.12, 29.57, -24.21)
CIE-LCHlch(10.12, 38.22, 320.69°)
OKLaboklab(23.84% 0.0741 -0.0682)
OKLCHoklch(23.84% 0.101 317.4)
XYZxyz(2.1848, 1.1419, 4.5193)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31073D #133D07
analogous
#16073D #31073D #3D072E
triadic
#31073D #3D3107 #073D31
tetradic
#31073D #3D1607 #133D07 #072E3D
square
#31073D #3D1607 #133D07 #072E3D
split-complementary
#31073D #2E3D07 #073D16
monochromatic
#16031B #16031B #31073D #5D0D74 #8914AB

Accessibility & contrast

On white

17.10
#31073D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31073D
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31073D#FFFFFF#000000##FFFFFF
##31073D1.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193E
Deuteranopia (green-blind)
#081D3C
Tritanopia (blue-blind)
#301322
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #31073d;
/* rgb */ color: rgb(49, 7, 61);
/* oklch */ color: oklch(23.8% 0.101 317.4);
Tailwind
colors: {
  custom: {
    50: '#6c4c73',
    500: '#31073d',
    950: '#000000',
  },
}
SCSS
$custom: #31073d;
$custom-light: #6c4c73;
$custom-dark: #000000;
JSON
{
  "hex": "#31073d",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 61
  },
  "hsl": {
    "h": 286.667,
    "s": 79.412,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23839,
    "c": 0.10066,
    "h": 317.4
  },
  "luminance": 0.01142
}

Semantic roles & 50–950 ramp

primary
#31073D
secondary
#377C23
accent
#F6325D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #31073D

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

Preview Lab → · Contrast checker → · Palette generator →

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