#311C88#311C88
#311C88 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.166 H 281.8°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).
Color values
| HEX | #311C88 |
|---|---|
| RGB | rgb(49, 28, 136) |
| HSL | hsl(252, 66%, 32%) |
| HSV | hsv(252, 79%, 53%) |
| CMYK | cmyk(64%, 79.4%, 0%, 46.7%) |
| CIE-LAB | lab(21.06, 40.72, -56.23) |
| CIE-LCH | lch(21.06, 69.43, 305.91°) |
| OKLab | oklab(33.76% 0.0338 -0.1622) |
| OKLCH | oklch(33.76% 0.166 281.8) |
| XYZ | xyz(6.1244, 3.2606, 23.5944) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.50
Indigo (survey)
#380282
ΔE00 4.15
Midnight Blue
#191970
ΔE00 4.73
Cobalt Blue
#030AA7
ΔE00 5.47
Darkblue
#00008B
ΔE00 5.50
Indigo
#4B0082
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311C88 #73881C
analogous
#1C3D88 #311C88 #671C88
triadic
#311C88 #88311C #1C8831
tetradic
#311C88 #881C3D #73881C #1C8867
square
#311C88 #881C3D #73881C #1C8867
split-complementary
#311C88 #88671C #3D881C
monochromatic
#0C0722 #1F1255 #311C88 #4326BB #6246D9
Accessibility & contrast
On white
12.71
#311C88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#311C88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311C88
12.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311C88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311C88 | 1.00 | 12.71 | 1.65 | 12.71 |
| #FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #311c88; /* rgb */ color: rgb(49, 28, 136); /* oklch */ color: oklch(33.8% 0.166 281.8);
Tailwind
colors: {
custom: {
50: '#755cac',
500: '#311c88',
950: '#000000',
},
}SCSS
$custom: #311c88; $custom-light: #755cac; $custom-dark: #000000;
JSON
{
"hex": "#311c88",
"rgb": {
"r": 49,
"g": 28,
"b": 136
},
"hsl": {
"h": 251.667,
"s": 65.854,
"l": 32.157
},
"oklch": {
"l": 0.33762,
"c": 0.16571,
"h": 281.8
},
"luminance": 0.03261
}Semantic roles & 50–950 ramp
primary
#311C88
secondary
#A4BA45
accent
#E93FC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F