#311A87#311A87

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

Color values

HEX#311A87
RGBrgb(49, 26, 135)
HSLhsl(253, 68%, 32%)
HSVhsv(253, 81%, 53%)
CMYKcmyk(63.7%, 80.7%, 0%, 47.1%)
CIE-LABlab(20.60, 41.42, -56.37)
CIE-LCHlch(20.60, 69.95, 306.31°)
OKLaboklab(33.41% 0.0353 -0.1626)
OKLCHoklch(33.41% 0.166 282.3)
XYZxyz(6.0078, 3.1406, 23.2066)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A87 #70871A
analogous
#1A3987 #311A87 #681A87
triadic
#311A87 #87311A #1A8731
tetradic
#311A87 #871A39 #70871A #1A8768
square
#311A87 #871A39 #70871A #1A8768
split-complementary
#311A87 #87681A #39871A
monochromatic
#0C0620 #1E1054 #311A87 #4424BA #6141DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##311A87#FFFFFF#000000##FFFFFF
##311A871.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)
#00358A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #311a87;
/* rgb */ color: rgb(49, 26, 135);
/* oklch */ color: oklch(33.4% 0.166 282.3);
Tailwind
colors: {
  custom: {
    50: '#755aab',
    500: '#311a87',
    950: '#000000',
  },
}
SCSS
$custom: #311a87;
$custom-light: #755aab;
$custom-dark: #000000;
JSON
{
  "hex": "#311a87",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 252.661,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33409,
    "c": 0.16639,
    "h": 282.3
  },
  "luminance": 0.03141
}

Semantic roles & 50–950 ramp

primary
#311A87
secondary
#A1BA42
accent
#EB3DC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311A87

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

Preview Lab → · Contrast checker → · Palette generator →

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