#311E82#311E82

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

Color values

HEX#311E82
RGBrgb(49, 30, 130)
HSLhsl(251, 63%, 31%)
HSVhsv(251, 77%, 51%)
CMYKcmyk(62.3%, 76.9%, 0%, 49%)
CIE-LABlab(20.80, 37.76, -52.88)
CIE-LCHlch(20.80, 64.98, 305.53°)
OKLaboklab(33.39% 0.0341 -0.1525)
OKLCHoklch(33.39% 0.156 282.6)
XYZxyz(5.7589, 3.1928, 21.4276)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E82 #6F821E
analogous
#1E3D82 #311E82 #631E82
triadic
#311E82 #82311E #1E8231
tetradic
#311E82 #821E3D #6F821E #1E8263
square
#311E82 #821E3D #6F821E #1E8263
split-complementary
#311E82 #82631E #3D821E
monochromatic
#0C071F #1E1350 #311E82 #4429B4 #6146D4

Accessibility & contrast

On white

12.82
#311E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311E82
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E82#FFFFFF#000000##FFFFFF
##311E821.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #311e82;
/* rgb */ color: rgb(49, 30, 130);
/* oklch */ color: oklch(33.4% 0.156 282.6);
Tailwind
colors: {
  custom: {
    50: '#745ca7',
    500: '#311e82',
    950: '#000000',
  },
}
SCSS
$custom: #311e82;
$custom-light: #745ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#311e82",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 251.4,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33391,
    "c": 0.15622,
    "h": 282.6
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #311E82

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

Preview Lab → · Contrast checker → · Palette generator →

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