#311C85#311C85
#311C85 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.162 H 282.3°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).
Color values
| HEX | #311C85 |
|---|---|
| RGB | rgb(49, 28, 133) |
| HSL | hsl(252, 65%, 32%) |
| HSV | hsv(252, 79%, 52%) |
| CMYK | cmyk(63.2%, 78.9%, 0%, 47.8%) |
| CIE-LAB | lab(20.74, 39.78, -54.88) |
| CIE-LCH | lch(20.74, 67.78, 305.94°) |
| OKLab | oklab(33.44% 0.0347 -0.1583) |
| OKLCH | oklch(33.44% 0.162 282.3) |
| XYZ | xyz(5.9142, 3.1765, 22.4872) |
| Luminance | 0.0318 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.76
Indigo (survey)
#380282
ΔE00 4.11
Midnight Blue
#191970
ΔE00 4.39
Darkblue
#00008B
ΔE00 5.60
Indigo
#4B0082
ΔE00 5.79
Cobalt Blue
#030AA7
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311C85 #70851C
analogous
#1C3C85 #311C85 #661C85
triadic
#311C85 #85311C #1C8531
tetradic
#311C85 #851C3C #70851C #1C8566
square
#311C85 #851C3C #70851C #1C8566
split-complementary
#311C85 #85661C #3C851C
monochromatic
#0C0720 #1E1152 #311C85 #4427B8 #6144D8
Accessibility & contrast
On white
12.84
#311C85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#311C85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311C85
12.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311C85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311C85 | 1.00 | 12.84 | 1.64 | 12.84 |
| #FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #311c85; /* rgb */ color: rgb(49, 28, 133); /* oklch */ color: oklch(33.4% 0.162 282.3);
Tailwind
colors: {
custom: {
50: '#755baa',
500: '#311c85',
950: '#000000',
},
}SCSS
$custom: #311c85; $custom-light: #755baa; $custom-dark: #000000;
JSON
{
"hex": "#311c85",
"rgb": {
"r": 49,
"g": 28,
"b": 133
},
"hsl": {
"h": 252,
"s": 65.217,
"l": 31.569
},
"oklch": {
"l": 0.33441,
"c": 0.16202,
"h": 282.3
},
"luminance": 0.03177
}Semantic roles & 50–950 ramp
primary
#311C85
secondary
#A1B845
accent
#E840C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F