#311D83#311D83

#311D83 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.159 H 282.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#311D83
RGBrgb(49, 29, 131)
HSLhsl(252, 64%, 31%)
HSVhsv(252, 78%, 51%)
CMYKcmyk(62.6%, 77.9%, 0%, 48.6%)
CIE-LABlab(20.71, 38.62, -53.66)
CIE-LCHlch(20.71, 66.11, 305.74°)
OKLaboklab(33.36% 0.0345 -0.1547)
OKLCHoklch(33.36% 0.159 282.6)
XYZxyz(5.8014, 3.1700, 21.7745)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D83 #6F831D
analogous
#1D3C83 #311D83 #641D83
triadic
#311D83 #83311D #1D8331
tetradic
#311D83 #831D3C #6F831D #1D8364
square
#311D83 #831D3C #6F831D #1D8364
split-complementary
#311D83 #83641D #3C831D
monochromatic
#0C071F #1E1251 #311D83 #4428B5 #6145D6

Accessibility & contrast

On white

12.85
#311D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#311D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D83
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D83#FFFFFF#000000##FFFFFF
##311D831.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #311d83;
/* rgb */ color: rgb(49, 29, 131);
/* oklch */ color: oklch(33.4% 0.159 282.6);
Tailwind
colors: {
  custom: {
    50: '#745ca8',
    500: '#311d83',
    950: '#000000',
  },
}
SCSS
$custom: #311d83;
$custom-light: #745ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#311d83",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 251.765,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3336,
    "c": 0.15852,
    "h": 282.6
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#311D83
secondary
#A0B646
accent
#E741C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311D83

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

Preview Lab → · Contrast checker → · Palette generator →

#311D83 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva