#311B88#311B88
#311B88 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.167 H 281.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).
Color values
| HEX | #311B88 |
|---|---|
| RGB | rgb(49, 27, 136) |
| HSL | hsl(252, 67%, 32%) |
| HSV | hsv(252, 80%, 53%) |
| CMYK | cmyk(64%, 80.1%, 0%, 46.7%) |
| CIE-LAB | lab(20.88, 41.23, -56.53) |
| CIE-LCH | lch(20.88, 69.96, 306.10°) |
| OKLab | oklab(33.64% 0.0344 -0.1631) |
| OKLCH | oklch(33.64% 0.167 281.9) |
| XYZ | xyz(6.1011, 3.2140, 23.5866) |
| Luminance | 0.0321 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.46
Indigo (survey)
#380282
ΔE00 3.95
Midnight Blue
#191970
ΔE00 4.75
Darkblue
#00008B
ΔE00 5.34
Cobalt Blue
#030AA7
ΔE00 5.38
Indigo
#4B0082
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311B88 #72881B
analogous
#1B3C88 #311B88 #681B88
triadic
#311B88 #88311B #1B8831
tetradic
#311B88 #881B3C #72881B #1B8868
square
#311B88 #881B3C #72881B #1B8868
split-complementary
#311B88 #88681B #3C881B
monochromatic
#0C0722 #1F1155 #311B88 #4325BB #6244DA
Accessibility & contrast
On white
12.78
#311B88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#311B88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311B88
12.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311B88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311B88 | 1.00 | 12.78 | 1.64 | 12.78 |
| #FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #311b88; /* rgb */ color: rgb(49, 27, 136); /* oklch */ color: oklch(33.6% 0.167 281.9);
Tailwind
colors: {
custom: {
50: '#755bac',
500: '#311b88',
950: '#000000',
},
}SCSS
$custom: #311b88; $custom-light: #755bac; $custom-dark: #000000;
JSON
{
"hex": "#311b88",
"rgb": {
"r": 49,
"g": 27,
"b": 136
},
"hsl": {
"h": 252.11,
"s": 66.871,
"l": 31.961
},
"oklch": {
"l": 0.33638,
"c": 0.16666,
"h": 281.9
},
"luminance": 0.03214
}Semantic roles & 50–950 ramp
primary
#311B88
secondary
#A3BB44
accent
#EA3EC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F