#311D85#311D85

#311D85 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.161 H 282.2°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#311D85
RGBrgb(49, 29, 133)
HSLhsl(252, 64%, 32%)
HSVhsv(252, 78%, 52%)
CMYKcmyk(63.2%, 78.2%, 0%, 47.8%)
CIE-LABlab(20.92, 39.25, -54.57)
CIE-LCHlch(20.92, 67.23, 305.73°)
OKLaboklab(33.57% 0.034 -0.1574)
OKLCHoklch(33.57% 0.161 282.2)
XYZxyz(5.9383, 3.2247, 22.4953)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D85 #71851D
analogous
#1D3D85 #311D85 #651D85
triadic
#311D85 #85311D #1D8531
tetradic
#311D85 #851D3D #71851D #1D8565
square
#311D85 #851D3D #71851D #1D8565
split-complementary
#311D85 #85651D #3D851D
monochromatic
#0C0721 #1E1253 #311D85 #4428B7 #6246D7

Accessibility & contrast

On white

12.77
#311D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#311D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D85
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D85#FFFFFF#000000##FFFFFF
##311D851.0012.771.6512.77
#FFFFFF12.771.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #311d85;
/* rgb */ color: rgb(49, 29, 133);
/* oklch */ color: oklch(33.6% 0.161 282.2);
Tailwind
colors: {
  custom: {
    50: '#755caa',
    500: '#311d85',
    950: '#000000',
  },
}
SCSS
$custom: #311d85;
$custom-light: #755caa;
$custom-dark: #000000;
JSON
{
  "hex": "#311d85",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 251.538,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33571,
    "c": 0.16101,
    "h": 282.2
  },
  "luminance": 0.03225
}

Semantic roles & 50–950 ramp

primary
#311D85
secondary
#A2B846
accent
#E741C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311D85

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

Preview Lab → · Contrast checker → · Palette generator →

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