#311686#311686
#311686 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.169 H 283.0°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).
Color values
| HEX | #311686 |
|---|---|
| RGB | rgb(49, 22, 134) |
| HSL | hsl(254, 72%, 31%) |
| HSV | hsv(254, 84%, 53%) |
| CMYK | cmyk(63.4%, 83.6%, 0%, 47.5%) |
| CIE-LAB | lab(19.83, 43.02, -57.00) |
| CIE-LCH | lch(19.83, 71.41, 307.04°) |
| OKLab | oklab(32.85% 0.038 -0.1644) |
| OKLCH | oklch(32.85% 0.169 283) |
| XYZ | xyz(5.8553, 2.9476, 22.8100) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.97
Royal
#0C1793
ΔE00 3.62
Darkblue
#00008B
ΔE00 4.70
Midnight Blue
#191970
ΔE00 4.78
Indigo
#4B0082
ΔE00 5.02
Navy
#000080
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311686 #6B8616
analogous
#163386 #311686 #691686
triadic
#311686 #863116 #168631
tetradic
#311686 #861633 #6B8616 #168669
square
#311686 #861633 #6B8616 #168669
split-complementary
#311686 #866916 #338616
monochromatic
#0B051D #1E0D51 #311686 #441FBB #6038DE
Accessibility & contrast
On white
13.21
#311686 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#311686 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311686
13.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311686 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311686 | 1.00 | 13.21 | 1.59 | 13.21 |
| #FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #311686; /* rgb */ color: rgb(49, 22, 134); /* oklch */ color: oklch(32.8% 0.169 283.0);
Tailwind
colors: {
custom: {
50: '#7558aa',
500: '#311686',
950: '#000000',
},
}SCSS
$custom: #311686; $custom-light: #7558aa; $custom-dark: #000000;
JSON
{
"hex": "#311686",
"rgb": {
"r": 49,
"g": 22,
"b": 134
},
"hsl": {
"h": 254.464,
"s": 71.795,
"l": 30.588
},
"oklch": {
"l": 0.32845,
"c": 0.16873,
"h": 283
},
"luminance": 0.02948
}Semantic roles & 50–950 ramp
primary
#311686
secondary
#9CBA3E
accent
#EF39C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F