#311A86#311A86

#311A86 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.165 H 282.5°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#311A86
RGBrgb(49, 26, 134)
HSLhsl(253, 68%, 31%)
HSVhsv(253, 81%, 53%)
CMYKcmyk(63.4%, 80.6%, 0%, 47.5%)
CIE-LABlab(20.49, 41.11, -55.92)
CIE-LCHlch(20.49, 69.41, 306.33°)
OKLaboklab(33.3% 0.0357 -0.1613)
OKLCHoklch(33.3% 0.165 282.5)
XYZxyz(5.9378, 3.1126, 22.8375)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A86 #6F861A
analogous
#1A3986 #311A86 #671A86
triadic
#311A86 #86311A #1A8631
tetradic
#311A86 #861A39 #6F861A #1A8667
square
#311A86 #861A39 #6F861A #1A8667
split-complementary
#311A86 #86671A #39861A
monochromatic
#0C061F #1E1053 #311A86 #4424B9 #6140DA

Accessibility & contrast

On white

12.94
#311A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311A86
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A86#FFFFFF#000000##FFFFFF
##311A861.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311a86;
/* rgb */ color: rgb(49, 26, 134);
/* oklch */ color: oklch(33.3% 0.165 282.5);
Tailwind
colors: {
  custom: {
    50: '#755aaa',
    500: '#311a86',
    950: '#000000',
  },
}
SCSS
$custom: #311a86;
$custom-light: #755aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#311a86",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 252.778,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.333,
    "c": 0.16517,
    "h": 282.5
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#311A86
secondary
#A0B942
accent
#EA3DC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311A86

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

Preview Lab → · Contrast checker → · Palette generator →

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