#311986#311986

#311986 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.166 H 282.6°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#311986
RGBrgb(49, 25, 134)
HSLhsl(253, 69%, 31%)
HSVhsv(253, 81%, 53%)
CMYKcmyk(63.4%, 81.3%, 0%, 47.5%)
CIE-LABlab(20.32, 41.61, -56.20)
CIE-LCHlch(20.32, 69.93, 306.52°)
OKLaboklab(33.18% 0.0363 -0.1621)
OKLCHoklch(33.18% 0.166 282.6)
XYZxyz(5.9160, 3.0690, 22.8303)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311986 #6E8619
analogous
#193786 #311986 #671986
triadic
#311986 #863119 #198631
tetradic
#311986 #861937 #6E8619 #198667
square
#311986 #861937 #6E8619 #198667
split-complementary
#311986 #866719 #378619
monochromatic
#0B061F #1E0F52 #311986 #4423BA #613EDB

Accessibility & contrast

On white

13.01
#311986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#311986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311986
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311986#FFFFFF#000000##FFFFFF
##3119861.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311986;
/* rgb */ color: rgb(49, 25, 134);
/* oklch */ color: oklch(33.2% 0.166 282.6);
Tailwind
colors: {
  custom: {
    50: '#755aaa',
    500: '#311986',
    950: '#000000',
  },
}
SCSS
$custom: #311986;
$custom-light: #755aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#311986",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 253.211,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33181,
    "c": 0.1661,
    "h": 282.6
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#311986
secondary
#9FBA41
accent
#EB3CC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311986

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

Preview Lab → · Contrast checker → · Palette generator →

#311986 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva