#311B84#311B84

#311B84 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.162 H 282.7°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#311B84
RGBrgb(49, 27, 132)
HSLhsl(253, 66%, 31%)
HSVhsv(253, 80%, 52%)
CMYKcmyk(62.9%, 79.5%, 0%, 48.2%)
CIE-LABlab(20.45, 39.99, -54.72)
CIE-LCHlch(20.45, 67.78, 306.16°)
OKLaboklab(33.21% 0.0356 -0.1578)
OKLCHoklch(33.21% 0.162 282.7)
XYZxyz(5.8221, 3.1024, 22.1173)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B84 #6E841B
analogous
#1B3984 #311B84 #651B84
triadic
#311B84 #84311B #1B8431
tetradic
#311B84 #841B39 #6E841B #1B8465
square
#311B84 #841B39 #6E841B #1B8465
split-complementary
#311B84 #84651B #39841B
monochromatic
#0B061E #1E1151 #311B84 #4425B7 #6141D8

Accessibility & contrast

On white

12.96
#311B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#311B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B84
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B84#FFFFFF#000000##FFFFFF
##311B841.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311b84;
/* rgb */ color: rgb(49, 27, 132);
/* oklch */ color: oklch(33.2% 0.162 282.7);
Tailwind
colors: {
  custom: {
    50: '#755ba9',
    500: '#311b84',
    950: '#000000',
  },
}
SCSS
$custom: #311b84;
$custom-light: #755ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#311b84",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 252.571,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33208,
    "c": 0.16178,
    "h": 282.7
  },
  "luminance": 0.03103
}

Semantic roles & 50–950 ramp

primary
#311B84
secondary
#9FB743
accent
#E93FC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311B84

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

Preview Lab → · Contrast checker → · Palette generator →

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