#311E84#311E84

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

Color values

HEX#311E84
RGBrgb(49, 30, 132)
HSLhsl(251, 63%, 32%)
HSVhsv(251, 77%, 52%)
CMYKcmyk(62.9%, 77.3%, 0%, 48.2%)
CIE-LABlab(21.01, 38.40, -53.80)
CIE-LCHlch(21.01, 66.10, 305.51°)
OKLaboklab(33.6% 0.0335 -0.1551)
OKLCHoklch(33.6% 0.159 282.2)
XYZxyz(5.8945, 3.2470, 22.1414)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E84 #71841E
analogous
#1E3E84 #311E84 #641E84
triadic
#311E84 #84311E #1E8431
tetradic
#311E84 #841E3E #71841E #1E8464
square
#311E84 #841E3E #71841E #1E8464
split-complementary
#311E84 #84641E #3E841E
monochromatic
#0C0720 #1E1352 #311E84 #4429B6 #6247D5

Accessibility & contrast

On white

12.73
#311E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311E84
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E84#FFFFFF#000000##FFFFFF
##311E841.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311e84;
/* rgb */ color: rgb(49, 30, 132);
/* oklch */ color: oklch(33.6% 0.159 282.2);
Tailwind
colors: {
  custom: {
    50: '#745ca9',
    500: '#311e84',
    950: '#000000',
  },
}
SCSS
$custom: #311e84;
$custom-light: #745ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#311e84",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 132
  },
  "hsl": {
    "h": 251.176,
    "s": 62.963,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33599,
    "c": 0.15873,
    "h": 282.2
  },
  "luminance": 0.03247
}

Semantic roles & 50–950 ramp

primary
#311E84
secondary
#A2B747
accent
#E642C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311E84

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

Preview Lab → · Contrast checker → · Palette generator →

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