#311B86#311B86
#311B86 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.164 H 282.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).
Color values
| HEX | #311B86 |
|---|---|
| RGB | rgb(49, 27, 134) |
| HSL | hsl(252, 66%, 32%) |
| HSV | hsv(252, 80%, 53%) |
| CMYK | cmyk(63.4%, 79.9%, 0%, 47.5%) |
| CIE-LAB | lab(20.66, 40.61, -55.63) |
| CIE-LCH | lch(20.66, 68.87, 306.13°) |
| OKLab | oklab(33.42% 0.035 -0.1604) |
| OKLCH | oklch(33.42% 0.164 282.3) |
| XYZ | xyz(5.9603, 3.1576, 22.8450) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.63
Indigo (survey)
#380282
ΔE00 3.91
Midnight Blue
#191970
ΔE00 4.53
Darkblue
#00008B
ΔE00 5.40
Cobalt Blue
#030AA7
ΔE00 5.63
Indigo
#4B0082
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311B86 #70861B
analogous
#1B3B86 #311B86 #671B86
triadic
#311B86 #86311B #1B8631
tetradic
#311B86 #861B3B #70861B #1B8667
square
#311B86 #861B3B #70861B #1B8667
split-complementary
#311B86 #86671B #3B861B
monochromatic
#0C0620 #1E1153 #311B86 #4425B9 #6142D9
Accessibility & contrast
On white
12.87
#311B86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#311B86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311B86
12.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311B86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311B86 | 1.00 | 12.87 | 1.63 | 12.87 |
| #FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #311b86; /* rgb */ color: rgb(49, 27, 134); /* oklch */ color: oklch(33.4% 0.164 282.3);
Tailwind
colors: {
custom: {
50: '#755baa',
500: '#311b86',
950: '#000000',
},
}SCSS
$custom: #311b86; $custom-light: #755baa; $custom-dark: #000000;
JSON
{
"hex": "#311b86",
"rgb": {
"r": 49,
"g": 27,
"b": 134
},
"hsl": {
"h": 252.336,
"s": 66.46,
"l": 31.569
},
"oklch": {
"l": 0.33422,
"c": 0.16423,
"h": 282.3
},
"luminance": 0.03158
}Semantic roles & 50–950 ramp
primary
#311B86
secondary
#A1B944
accent
#E93EC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F