#31083D#31083D

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

Color values

HEX#31083D
RGBrgb(49, 8, 61)
HSLhsl(286, 77%, 14%)
HSVhsv(286, 87%, 24%)
CMYKcmyk(19.7%, 86.9%, 0%, 76.1%)
CIE-LABlab(10.29, 29.09, -23.94)
CIE-LCHlch(10.29, 37.68, 320.55°)
OKLaboklab(23.96% 0.0728 -0.0674)
OKLCHoklch(23.96% 0.099 317.2)
XYZxyz(2.1956, 1.1637, 4.5229)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31083D #143D08
analogous
#16083D #31083D #3D082E
triadic
#31083D #3D3108 #083D31
tetradic
#31083D #3D1608 #143D08 #082E3D
square
#31083D #3D1608 #143D08 #082E3D
split-complementary
#31083D #2E3D08 #083D16
monochromatic
#16041B #16041B #31083D #5C0F73 #8816A9

Accessibility & contrast

On white

17.03
#31083D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31083D
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31083D#FFFFFF#000000##FFFFFF
##31083D1.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)
#001A3E
Deuteranopia (green-blind)
#091D3C
Tritanopia (blue-blind)
#301322
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #31083d;
/* rgb */ color: rgb(49, 8, 61);
/* oklch */ color: oklch(24.0% 0.099 317.2);
Tailwind
colors: {
  custom: {
    50: '#6c4d73',
    500: '#31083d',
    950: '#000000',
  },
}
SCSS
$custom: #31083d;
$custom-light: #6c4d73;
$custom-dark: #000000;
JSON
{
  "hex": "#31083d",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 61
  },
  "hsl": {
    "h": 286.415,
    "s": 76.812,
    "l": 13.529
  },
  "oklch": {
    "l": 0.23956,
    "c": 0.09924,
    "h": 317.2
  },
  "luminance": 0.01164
}

Semantic roles & 50–950 ramp

primary
#31083D
secondary
#397C25
accent
#F33460
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #31083D

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

Preview Lab → · Contrast checker → · Palette generator →

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