#311E80#311E80

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

Color values

HEX#311E80
RGBrgb(49, 30, 128)
HSLhsl(252, 62%, 31%)
HSVhsv(252, 77%, 50%)
CMYKcmyk(61.7%, 76.6%, 0%, 49.8%)
CIE-LABlab(20.59, 37.13, -51.96)
CIE-LCHlch(20.59, 63.86, 305.55°)
OKLaboklab(33.18% 0.0346 -0.1497)
OKLCHoklch(33.18% 0.154 283)
XYZxyz(5.6260, 3.1396, 20.7274)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E80 #6D801E
analogous
#1E3C80 #311E80 #621E80
triadic
#311E80 #80311E #1E8031
tetradic
#311E80 #801E3C #6D801E #1E8062
square
#311E80 #801E3C #6D801E #1E8062
split-complementary
#311E80 #80621E #3C801E
monochromatic
#0B071D #1E124E #311E80 #442AB2 #6145D3

Accessibility & contrast

On white

12.90
#311E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#311E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E80
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E80#FFFFFF#000000##FFFFFF
##311E801.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #311e80;
/* rgb */ color: rgb(49, 30, 128);
/* oklch */ color: oklch(33.2% 0.154 283.0);
Tailwind
colors: {
  custom: {
    50: '#745ca6',
    500: '#311e80',
    950: '#000000',
  },
}
SCSS
$custom: #311e80;
$custom-light: #745ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#311e80",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 128
  },
  "hsl": {
    "h": 251.633,
    "s": 62.025,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33184,
    "c": 0.15369,
    "h": 283
  },
  "luminance": 0.0314
}

Semantic roles & 50–950 ramp

primary
#311E80
secondary
#9EB347
accent
#E543C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311E80

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

Preview Lab → · Contrast checker → · Palette generator →

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