#311D85#311D85
#311D85 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.161 H 282.2°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).
Color values
| HEX | #311D85 |
|---|---|
| RGB | rgb(49, 29, 133) |
| HSL | hsl(252, 64%, 32%) |
| HSV | hsv(252, 78%, 52%) |
| CMYK | cmyk(63.2%, 78.2%, 0%, 47.8%) |
| CIE-LAB | lab(20.92, 39.25, -54.57) |
| CIE-LCH | lch(20.92, 67.23, 305.73°) |
| OKLab | oklab(33.57% 0.034 -0.1574) |
| OKLCH | oklch(33.57% 0.161 282.2) |
| XYZ | xyz(5.9383, 3.2247, 22.4953) |
| Luminance | 0.0323 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.81
Indigo (survey)
#380282
ΔE00 4.33
Midnight Blue
#191970
ΔE00 4.38
Darkblue
#00008B
ΔE00 5.77
Cobalt Blue
#030AA7
ΔE00 5.95
Indigo
#4B0082
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311D85 #71851D
analogous
#1D3D85 #311D85 #651D85
triadic
#311D85 #85311D #1D8531
tetradic
#311D85 #851D3D #71851D #1D8565
square
#311D85 #851D3D #71851D #1D8565
split-complementary
#311D85 #85651D #3D851D
monochromatic
#0C0721 #1E1253 #311D85 #4428B7 #6246D7
Accessibility & contrast
On white
12.77
#311D85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#311D85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311D85
12.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311D85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311D85 | 1.00 | 12.77 | 1.65 | 12.77 |
| #FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #311d85; /* rgb */ color: rgb(49, 29, 133); /* oklch */ color: oklch(33.6% 0.161 282.2);
Tailwind
colors: {
custom: {
50: '#755caa',
500: '#311d85',
950: '#000000',
},
}SCSS
$custom: #311d85; $custom-light: #755caa; $custom-dark: #000000;
JSON
{
"hex": "#311d85",
"rgb": {
"r": 49,
"g": 29,
"b": 133
},
"hsl": {
"h": 251.538,
"s": 64.198,
"l": 31.765
},
"oklch": {
"l": 0.33571,
"c": 0.16101,
"h": 282.2
},
"luminance": 0.03225
}Semantic roles & 50–950 ramp
primary
#311D85
secondary
#A2B846
accent
#E741C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F