#311C8E#311C8E
#311C8E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.173 H 280.7°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).
Color values
| HEX | #311C8E |
|---|---|
| RGB | rgb(49, 28, 142) |
| HSL | hsl(251, 67%, 33%) |
| HSV | hsv(251, 80%, 56%) |
| CMYK | cmyk(65.5%, 80.3%, 0%, 44.3%) |
| CIE-LAB | lab(21.71, 42.58, -58.91) |
| CIE-LCH | lch(21.71, 72.68, 305.86°) |
| OKLab | oklab(34.41% 0.032 -0.17) |
| OKLCH | oklch(34.41% 0.173 280.7) |
| XYZ | xyz(6.5628, 3.4360, 25.9033) |
| Luminance | 0.0344 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.14
Indigo (survey)
#380282
ΔE00 4.39
Cobalt Blue
#030AA7
ΔE00 4.79
Indigo Blue
#3A18B1
ΔE00 5.01
Royal Blue (survey)
#0504AA
ΔE00 5.22
Midnight Blue
#191970
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311C8E #798E1C
analogous
#1C408E #311C8E #6A1C8E
triadic
#311C8E #8E311C #1C8E31
tetradic
#311C8E #8E1C40 #798E1C #1C8E6A
square
#311C8E #8E1C40 #798E1C #1C8E6A
split-complementary
#311C8E #8E6A1C #408E1C
monochromatic
#0E0828 #1F125B #311C8E #4326C1 #6449DB
Accessibility & contrast
On white
12.45
#311C8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#311C8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311C8E
12.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311C8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311C8E | 1.00 | 12.45 | 1.69 | 12.45 |
| #FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #311c8e; /* rgb */ color: rgb(49, 28, 142); /* oklch */ color: oklch(34.4% 0.173 280.7);
Tailwind
colors: {
custom: {
50: '#775cb0',
500: '#311c8e',
950: '#000000',
},
}SCSS
$custom: #311c8e; $custom-light: #775cb0; $custom-dark: #000000;
JSON
{
"hex": "#311c8e",
"rgb": {
"r": 49,
"g": 28,
"b": 142
},
"hsl": {
"h": 251.053,
"s": 67.059,
"l": 33.333
},
"oklch": {
"l": 0.34412,
"c": 0.173,
"h": 280.7
},
"luminance": 0.03436
}Semantic roles & 50–950 ramp
primary
#311C8E
secondary
#A8BD49
accent
#EA3ECA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980