#311B76#311B76
#311B76 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.144 H 285.9°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).
Color values
| HEX | #311B76 |
|---|---|
| RGB | rgb(49, 27, 118) |
| HSL | hsl(255, 63%, 28%) |
| HSV | hsv(255, 77%, 46%) |
| CMYK | cmyk(58.5%, 77.1%, 0%, 53.7%) |
| CIE-LAB | lab(18.99, 35.62, -48.22) |
| CIE-LCH | lch(18.99, 59.95, 306.45°) |
| OKLab | oklab(31.74% 0.0395 -0.1388) |
| OKLCH | oklch(31.74% 0.144 285.9) |
| XYZ | xyz(4.9276, 2.7446, 17.4061) |
| Luminance | 0.0274 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.36
Indigo (survey)
#380282
ΔE00 4.54
Royal
#0C1793
ΔE00 5.63
Dark Royal Blue
#02066F
ΔE00 5.82
Indigo
#4B0082
ΔE00 5.97
Deep Blue
#040273
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311B76 #60761B
analogous
#1B3276 #311B76 #5E1B76
triadic
#311B76 #76311B #1B7631
tetradic
#311B76 #761B32 #60761B #1B765E
square
#311B76 #761B32 #60761B #1B765E
split-complementary
#311B76 #765E1B #32761B
monochromatic
#0A0619 #1C1044 #311B76 #4626A8 #5E3AD2
Accessibility & contrast
On white
13.56
#311B76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#311B76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311B76
13.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311B76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311B76 | 1.00 | 13.56 | 1.55 | 13.56 |
| #FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#103447
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #311b76; /* rgb */ color: rgb(49, 27, 118); /* oklch */ color: oklch(31.7% 0.144 285.9);
Tailwind
colors: {
custom: {
50: '#725a9e',
500: '#311b76',
950: '#000000',
},
}SCSS
$custom: #311b76; $custom-light: #725a9e; $custom-dark: #000000;
JSON
{
"hex": "#311b76",
"rgb": {
"r": 49,
"g": 27,
"b": 118
},
"hsl": {
"h": 254.505,
"s": 62.759,
"l": 28.431
},
"oklch": {
"l": 0.31744,
"c": 0.14431,
"h": 285.9
},
"luminance": 0.02745
}Semantic roles & 50–950 ramp
primary
#311B76
secondary
#91AA42
accent
#E642BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E