#31083C#31083C

#31083C is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.098 H 318.0°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#31083C
RGBrgb(49, 8, 60)
HSLhsl(287, 76%, 13%)
HSVhsv(287, 87%, 24%)
CMYKcmyk(18.3%, 86.7%, 0%, 76.5%)
CIE-LABlab(10.21, 28.86, -23.36)
CIE-LCHlch(10.21, 37.13, 321.02°)
OKLaboklab(23.87% 0.073 -0.0657)
OKLCHoklch(23.87% 0.098 318)
XYZxyz(2.1690, 1.1530, 4.3824)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31083C #133C08
analogous
#17083C #31083C #3C082D
triadic
#31083C #3C3108 #083C31
tetradic
#31083C #3C1708 #133C08 #082D3C
square
#31083C #3C1708 #133C08 #082D3C
split-complementary
#31083C #2D3C08 #083C17
monochromatic
#16041B #16041B #31083C #5D0F72 #8916A8

Accessibility & contrast

On white

17.06
#31083C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31083C
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31083C#FFFFFF#000000##FFFFFF
##31083C1.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193D
Deuteranopia (green-blind)
#0A1D3B
Tritanopia (blue-blind)
#311321
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #31083c;
/* rgb */ color: rgb(49, 8, 60);
/* oklch */ color: oklch(23.9% 0.098 318.0);
Tailwind
colors: {
  custom: {
    50: '#6b4d72',
    500: '#31083c',
    950: '#000000',
  },
}
SCSS
$custom: #31083c;
$custom-light: #6b4d72;
$custom-dark: #000000;
JSON
{
  "hex": "#31083c",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 60
  },
  "hsl": {
    "h": 287.308,
    "s": 76.471,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23873,
    "c": 0.09819,
    "h": 318
  },
  "luminance": 0.01153
}

Semantic roles & 50–950 ramp

primary
#31083C
secondary
#377B25
accent
#F3355D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070108
muted
#7A777B

Preview Lab

Preview with #31083C

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

Preview Lab → · Contrast checker → · Palette generator →

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