#311B84#311B84
#311B84 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.162 H 282.7°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).
Color values
| HEX | #311B84 |
|---|---|
| RGB | rgb(49, 27, 132) |
| HSL | hsl(253, 66%, 31%) |
| HSV | hsv(253, 80%, 52%) |
| CMYK | cmyk(62.9%, 79.5%, 0%, 48.2%) |
| CIE-LAB | lab(20.45, 39.99, -54.72) |
| CIE-LCH | lch(20.45, 67.78, 306.16°) |
| OKLab | oklab(33.21% 0.0356 -0.1578) |
| OKLCH | oklch(33.21% 0.162 282.7) |
| XYZ | xyz(5.8221, 3.1024, 22.1173) |
| Luminance | 0.0310 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.82
Indigo (survey)
#380282
ΔE00 3.90
Midnight Blue
#191970
ΔE00 4.32
Darkblue
#00008B
ΔE00 5.48
Indigo
#4B0082
ΔE00 5.63
Navy
#000080
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311B84 #6E841B
analogous
#1B3984 #311B84 #651B84
triadic
#311B84 #84311B #1B8431
tetradic
#311B84 #841B39 #6E841B #1B8465
square
#311B84 #841B39 #6E841B #1B8465
split-complementary
#311B84 #84651B #39841B
monochromatic
#0B061E #1E1151 #311B84 #4425B7 #6141D8
Accessibility & contrast
On white
12.96
#311B84 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#311B84 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311B84
12.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311B84 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311B84 | 1.00 | 12.96 | 1.62 | 12.96 |
| #FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #311b84; /* rgb */ color: rgb(49, 27, 132); /* oklch */ color: oklch(33.2% 0.162 282.7);
Tailwind
colors: {
custom: {
50: '#755ba9',
500: '#311b84',
950: '#000000',
},
}SCSS
$custom: #311b84; $custom-light: #755ba9; $custom-dark: #000000;
JSON
{
"hex": "#311b84",
"rgb": {
"r": 49,
"g": 27,
"b": 132
},
"hsl": {
"h": 252.571,
"s": 66.038,
"l": 31.176
},
"oklch": {
"l": 0.33208,
"c": 0.16178,
"h": 282.7
},
"luminance": 0.03103
}Semantic roles & 50–950 ramp
primary
#311B84
secondary
#9FB743
accent
#E93FC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F