#311581#311581
#311581 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.164 H 284.3°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).
Color values
| HEX | #311581 |
|---|---|
| RGB | rgb(49, 21, 129) |
| HSL | hsl(256, 72%, 29%) |
| HSV | hsv(256, 84%, 51%) |
| CMYK | cmyk(62%, 83.7%, 0%, 49.4%) |
| CIE-LAB | lab(19.11, 41.99, -55.03) |
| CIE-LCH | lch(19.11, 69.22, 307.35°) |
| OKLab | oklab(32.18% 0.0403 -0.1586) |
| OKLCH | oklch(32.18% 0.164 284.3) |
| XYZ | xyz(5.4960, 2.7739, 21.0104) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.75
Royal
#0C1793
ΔE00 4.14
Midnight Blue
#191970
ΔE00 4.39
Darkblue
#00008B
ΔE00 4.82
Indigo
#4B0082
ΔE00 4.86
Navy
#000080
ΔE00 4.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311581 #658115
analogous
#152F81 #311581 #671581
triadic
#311581 #813115 #158131
tetradic
#311581 #81152F #658115 #158167
square
#311581 #81152F #658115 #158167
split-complementary
#311581 #816715 #2F8115
monochromatic
#0A041A #1D0C4C #311581 #451EB6 #5F33DE
Accessibility & contrast
On white
13.51
#311581 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#311581 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311581
13.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311581 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311581 | 1.00 | 13.51 | 1.55 | 13.51 |
| #FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #311581; /* rgb */ color: rgb(49, 21, 129); /* oklch */ color: oklch(32.2% 0.164 284.3);
Tailwind
colors: {
custom: {
50: '#7557a7',
500: '#311581',
950: '#000000',
},
}SCSS
$custom: #311581; $custom-light: #7557a7; $custom-dark: #000000;
JSON
{
"hex": "#311581",
"rgb": {
"r": 49,
"g": 21,
"b": 129
},
"hsl": {
"h": 255.556,
"s": 72,
"l": 29.412
},
"oklch": {
"l": 0.32182,
"c": 0.16368,
"h": 284.3
},
"luminance": 0.02774
}Semantic roles & 50–950 ramp
primary
#311581
secondary
#96B63C
accent
#EF39C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F