#311C96#311C96
#311C96 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.183 H 279.3°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).
Color values
| HEX | #311C96 |
|---|---|
| RGB | rgb(49, 28, 150) |
| HSL | hsl(250, 69%, 35%) |
| HSV | hsv(250, 81%, 59%) |
| CMYK | cmyk(67.3%, 81.3%, 0%, 41.2%) |
| CIE-LAB | lab(22.60, 45.03, -62.39) |
| CIE-LCH | lch(22.60, 76.95, 305.82°) |
| OKLab | oklab(35.29% 0.0296 -0.1802) |
| OKLCH | oklch(35.29% 0.183 279.3) |
| XYZ | xyz(7.1851, 3.6849, 29.1809) |
| Luminance | 0.0369 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.08
Indigo Blue
#3A18B1
ΔE00 3.89
Cobalt Blue
#030AA7
ΔE00 4.07
Royal Blue (survey)
#0504AA
ΔE00 4.48
Ultramarine
#2000B1
ΔE00 4.63
Indigo (survey)
#380282
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311C96 #81961C
analogous
#1C4496 #311C96 #6E1C96
triadic
#311C96 #96311C #1C9631
tetradic
#311C96 #961C44 #81961C #1C966E
square
#311C96 #961C44 #81961C #1C966E
split-complementary
#311C96 #966E1C #44961C
monochromatic
#0F092F #201262 #311C96 #4226CA #674EDE
Accessibility & contrast
On white
12.09
#311C96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#311C96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311C96
12.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311C96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311C96 | 1.00 | 12.09 | 1.74 | 12.09 |
| #FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #311c96; /* rgb */ color: rgb(49, 28, 150); /* oklch */ color: oklch(35.3% 0.183 279.3);
Tailwind
colors: {
custom: {
50: '#785cb6',
500: '#311c96',
950: '#000000',
},
}SCSS
$custom: #311c96; $custom-light: #785cb6; $custom-dark: #000000;
JSON
{
"hex": "#311c96",
"rgb": {
"r": 49,
"g": 28,
"b": 150
},
"hsl": {
"h": 250.328,
"s": 68.539,
"l": 34.902
},
"oklch": {
"l": 0.35293,
"c": 0.18259,
"h": 279.3
},
"luminance": 0.03685
}Semantic roles & 50–950 ramp
primary
#311C96
secondary
#ADC14D
accent
#EB3CCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980