#311B86#311B86

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

Color values

HEX#311B86
RGBrgb(49, 27, 134)
HSLhsl(252, 66%, 32%)
HSVhsv(252, 80%, 53%)
CMYKcmyk(63.4%, 79.9%, 0%, 47.5%)
CIE-LABlab(20.66, 40.61, -55.63)
CIE-LCHlch(20.66, 68.87, 306.13°)
OKLaboklab(33.42% 0.035 -0.1604)
OKLCHoklch(33.42% 0.164 282.3)
XYZxyz(5.9603, 3.1576, 22.8450)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B86 #70861B
analogous
#1B3B86 #311B86 #671B86
triadic
#311B86 #86311B #1B8631
tetradic
#311B86 #861B3B #70861B #1B8667
square
#311B86 #861B3B #70861B #1B8667
split-complementary
#311B86 #86671B #3B861B
monochromatic
#0C0620 #1E1153 #311B86 #4425B9 #6142D9

Accessibility & contrast

On white

12.87
#311B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311B86
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B86#FFFFFF#000000##FFFFFF
##311B861.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #311b86;
/* rgb */ color: rgb(49, 27, 134);
/* oklch */ color: oklch(33.4% 0.164 282.3);
Tailwind
colors: {
  custom: {
    50: '#755baa',
    500: '#311b86',
    950: '#000000',
  },
}
SCSS
$custom: #311b86;
$custom-light: #755baa;
$custom-dark: #000000;
JSON
{
  "hex": "#311b86",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 252.336,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33422,
    "c": 0.16423,
    "h": 282.3
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#311B86
secondary
#A1B944
accent
#E93EC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311B86

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

Preview Lab → · Contrast checker → · Palette generator →

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