#311584#311584
#311584 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.167 H 283.6°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).
Color values
| HEX | #311584 |
|---|---|
| RGB | rgb(49, 21, 132) |
| HSL | hsl(255, 73%, 30%) |
| HSV | hsv(255, 84%, 52%) |
| CMYK | cmyk(62.9%, 84.1%, 0%, 48.2%) |
| CIE-LAB | lab(19.45, 42.88, -56.37) |
| CIE-LCH | lch(19.45, 70.82, 307.26°) |
| OKLab | oklab(32.52% 0.0393 -0.1625) |
| OKLCH | oklch(32.52% 0.167 283.6) |
| XYZ | xyz(5.6984, 2.8549, 22.0761) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.76
Royal
#0C1793
ΔE00 3.83
Midnight Blue
#191970
ΔE00 4.65
Darkblue
#00008B
ΔE00 4.66
Indigo
#4B0082
ΔE00 4.89
Navy
#000080
ΔE00 4.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311584 #688415
analogous
#153184 #311584 #681584
triadic
#311584 #843115 #158431
tetradic
#311584 #841531 #688415 #158468
square
#311584 #841531 #688415 #158468
split-complementary
#311584 #846815 #318415
monochromatic
#0A041A #1D0D4F #311584 #451DB9 #6035DF
Accessibility & contrast
On white
13.37
#311584 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#311584 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311584
13.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311584 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311584 | 1.00 | 13.37 | 1.57 | 13.37 |
| #FFFFFF | 13.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00374E
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #311584; /* rgb */ color: rgb(49, 21, 132); /* oklch */ color: oklch(32.5% 0.167 283.6);
Tailwind
colors: {
custom: {
50: '#7558a9',
500: '#311584',
950: '#000000',
},
}SCSS
$custom: #311584; $custom-light: #7558a9; $custom-dark: #000000;
JSON
{
"hex": "#311584",
"rgb": {
"r": 49,
"g": 21,
"b": 132
},
"hsl": {
"h": 255.135,
"s": 72.549,
"l": 30
},
"oklch": {
"l": 0.32516,
"c": 0.1672,
"h": 283.6
},
"luminance": 0.02855
}Semantic roles & 50–950 ramp
primary
#311584
secondary
#99B93C
accent
#EF39C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F