#311C7E#311C7E
#311C7E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.153 H 283.8°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).
Color values
| HEX | #311C7E |
|---|---|
| RGB | rgb(49, 28, 126) |
| HSL | hsl(253, 64%, 30%) |
| HSV | hsv(253, 78%, 49%) |
| CMYK | cmyk(61.1%, 77.8%, 0%, 50.6%) |
| CIE-LAB | lab(20.00, 37.59, -51.66) |
| CIE-LCH | lch(20.00, 63.89, 306.04°) |
| OKLab | oklab(32.7% 0.0366 -0.1489) |
| OKLCH | oklch(32.7% 0.153 283.8) |
| XYZ | xyz(5.4466, 2.9895, 20.0246) |
| Luminance | 0.0299 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.73
Indigo (survey)
#380282
ΔE00 4.23
Royal
#0C1793
ΔE00 4.55
Indigo
#4B0082
ΔE00 5.84
Darkblue
#00008B
ΔE00 6.01
Dark Royal Blue
#02066F
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311C7E #697E1C
analogous
#1C387E #311C7E #621C7E
triadic
#311C7E #7E311C #1C7E31
tetradic
#311C7E #7E1C38 #697E1C #1C7E62
square
#311C7E #7E1C38 #697E1C #1C7E62
split-complementary
#311C7E #7E621C #387E1C
monochromatic
#0A061A #1E114C #311C7E #4427B0 #6040D5
Accessibility & contrast
On white
13.14
#311C7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#311C7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311C7E
13.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311C7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311C7E | 1.00 | 13.14 | 1.60 | 13.14 |
| #FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#01384C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #311c7e; /* rgb */ color: rgb(49, 28, 126); /* oklch */ color: oklch(32.7% 0.153 283.8);
Tailwind
colors: {
custom: {
50: '#735ba4',
500: '#311c7e',
950: '#000000',
},
}SCSS
$custom: #311c7e; $custom-light: #735ba4; $custom-dark: #000000;
JSON
{
"hex": "#311c7e",
"rgb": {
"r": 49,
"g": 28,
"b": 126
},
"hsl": {
"h": 252.857,
"s": 63.636,
"l": 30.196
},
"oklch": {
"l": 0.32704,
"c": 0.15331,
"h": 283.8
},
"luminance": 0.0299
}Semantic roles & 50–950 ramp
primary
#311C7E
secondary
#9AB244
accent
#E741C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F