#311C81#311C81
#311C81 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.157 H 283.2°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).
Color values
| HEX | #311C81 |
|---|---|
| RGB | rgb(49, 28, 129) |
| HSL | hsl(252, 64%, 31%) |
| HSV | hsv(252, 78%, 51%) |
| CMYK | cmyk(62%, 78.3%, 0%, 49.4%) |
| CIE-LAB | lab(20.31, 38.53, -53.05) |
| CIE-LCH | lch(20.31, 65.57, 305.99°) |
| OKLab | oklab(33.02% 0.0358 -0.1529) |
| OKLCH | oklch(33.02% 0.157 283.2) |
| XYZ | xyz(5.6431, 3.0681, 21.0595) |
| Luminance | 0.0307 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.99
Indigo (survey)
#380282
ΔE00 4.14
Royal
#0C1793
ΔE00 4.19
Indigo
#4B0082
ΔE00 5.79
Darkblue
#00008B
ΔE00 5.80
Navy
#000080
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311C81 #6C811C
analogous
#1C3981 #311C81 #631C81
triadic
#311C81 #81311C #1C8131
tetradic
#311C81 #811C39 #6C811C #1C8163
square
#311C81 #811C39 #6C811C #1C8163
split-complementary
#311C81 #81631C #39811C
monochromatic
#0B061C #1E114F #311C81 #4427B3 #6042D6
Accessibility & contrast
On white
13.01
#311C81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#311C81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311C81
13.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311C81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311C81 | 1.00 | 13.01 | 1.61 | 13.01 |
| #FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #311c81; /* rgb */ color: rgb(49, 28, 129); /* oklch */ color: oklch(33.0% 0.157 283.2);
Tailwind
colors: {
custom: {
50: '#745ba7',
500: '#311c81',
950: '#000000',
},
}SCSS
$custom: #311c81; $custom-light: #745ba7; $custom-dark: #000000;
JSON
{
"hex": "#311c81",
"rgb": {
"r": 49,
"g": 28,
"b": 129
},
"hsl": {
"h": 252.475,
"s": 64.331,
"l": 30.784
},
"oklch": {
"l": 0.33018,
"c": 0.15706,
"h": 283.2
},
"luminance": 0.03068
}Semantic roles & 50–950 ramp
primary
#311C81
secondary
#9DB444
accent
#E740C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F