#311B83#311B83

#311B83 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.161 H 282.9°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#311B83
RGBrgb(49, 27, 131)
HSLhsl(253, 66%, 31%)
HSVhsv(253, 79%, 51%)
CMYKcmyk(62.6%, 79.4%, 0%, 48.6%)
CIE-LABlab(20.34, 39.68, -54.27)
CIE-LCHlch(20.34, 67.23, 306.17°)
OKLaboklab(33.1% 0.0359 -0.1565)
OKLCHoklch(33.1% 0.161 282.9)
XYZxyz(5.7540, 3.0751, 21.7587)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B83 #6D831B
analogous
#1B3983 #311B83 #651B83
triadic
#311B83 #83311B #1B8331
tetradic
#311B83 #831B39 #6D831B #1B8365
square
#311B83 #831B39 #6D831B #1B8365
split-complementary
#311B83 #83651B #39831B
monochromatic
#0B061E #1E1150 #311B83 #4425B6 #6141D8

Accessibility & contrast

On white

13.00
#311B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311B83
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B83#FFFFFF#000000##FFFFFF
##311B831.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311b83;
/* rgb */ color: rgb(49, 27, 131);
/* oklch */ color: oklch(33.1% 0.161 282.9);
Tailwind
colors: {
  custom: {
    50: '#745ba8',
    500: '#311b83',
    950: '#000000',
  },
}
SCSS
$custom: #311b83;
$custom-light: #745ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#311b83",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 252.692,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33101,
    "c": 0.16055,
    "h": 282.9
  },
  "luminance": 0.03076
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #311B83

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

Preview Lab → · Contrast checker → · Palette generator →

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