#311E83#311E83

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

Color values

HEX#311E83
RGBrgb(49, 30, 131)
HSLhsl(251, 63%, 32%)
HSVhsv(251, 77%, 51%)
CMYKcmyk(62.6%, 77.1%, 0%, 48.6%)
CIE-LABlab(20.90, 38.08, -53.35)
CIE-LCHlch(20.90, 65.54, 305.52°)
OKLaboklab(33.5% 0.0338 -0.1538)
OKLCHoklch(33.5% 0.157 282.4)
XYZxyz(5.8264, 3.2198, 21.7828)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E83 #70831E
analogous
#1E3E83 #311E83 #641E83
triadic
#311E83 #83311E #1E8331
tetradic
#311E83 #831E3E #70831E #1E8364
square
#311E83 #831E3E #70831E #1E8364
split-complementary
#311E83 #83641E #3E831E
monochromatic
#0C071F #1E1351 #311E83 #4429B5 #6147D5

Accessibility & contrast

On white

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

On black

1.64
#311E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##311E83#FFFFFF#000000##FFFFFF
##311E831.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #311e83;
/* rgb */ color: rgb(49, 30, 131);
/* oklch */ color: oklch(33.5% 0.157 282.4);
Tailwind
colors: {
  custom: {
    50: '#745ca8',
    500: '#311e83',
    950: '#000000',
  },
}
SCSS
$custom: #311e83;
$custom-light: #745ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#311e83",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 131
  },
  "hsl": {
    "h": 251.287,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33495,
    "c": 0.15748,
    "h": 282.4
  },
  "luminance": 0.0322
}

Semantic roles & 50–950 ramp

primary
#311E83
secondary
#A1B647
accent
#E642C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311E83

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

Preview Lab → · Contrast checker → · Palette generator →

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