#311E7E#311E7E
#311E7E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.151 H 283.4°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).
Color values
| HEX | #311E7E |
|---|---|
| RGB | rgb(49, 30, 126) |
| HSL | hsl(252, 62%, 31%) |
| HSV | hsv(252, 76%, 49%) |
| CMYK | cmyk(61.1%, 76.2%, 0%, 50.6%) |
| CIE-LAB | lab(20.39, 36.49, -51.02) |
| CIE-LCH | lch(20.39, 62.73, 305.57°) |
| OKLab | oklab(32.98% 0.0351 -0.147) |
| OKLCH | oklch(32.98% 0.151 283.4) |
| XYZ | xyz(5.4956, 3.0875, 20.0410) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.72
Royal
#0C1793
ΔE00 4.67
Indigo (survey)
#380282
ΔE00 4.70
Indigo
#4B0082
ΔE00 6.20
Dark Royal Blue
#02066F
ΔE00 6.33
Darkblue
#00008B
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311E7E #6B7E1E
analogous
#1E3B7E #311E7E #611E7E
triadic
#311E7E #7E311E #1E7E31
tetradic
#311E7E #7E1E3B #6B7E1E #1E7E61
square
#311E7E #7E1E3B #6B7E1E #1E7E61
split-complementary
#311E7E #7E611E #3B7E1E
monochromatic
#0B061B #1E124D #311E7E #442AAF #6044D2
Accessibility & contrast
On white
12.98
#311E7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#311E7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311E7E
12.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311E7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311E7E | 1.00 | 12.98 | 1.62 | 12.98 |
| #FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#01394C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #311e7e; /* rgb */ color: rgb(49, 30, 126); /* oklch */ color: oklch(33.0% 0.151 283.4);
Tailwind
colors: {
custom: {
50: '#735ca4',
500: '#311e7e',
950: '#000000',
},
}SCSS
$custom: #311e7e; $custom-light: #735ca4; $custom-dark: #000000;
JSON
{
"hex": "#311e7e",
"rgb": {
"r": 49,
"g": 30,
"b": 126
},
"hsl": {
"h": 251.875,
"s": 61.538,
"l": 30.588
},
"oklch": {
"l": 0.32978,
"c": 0.15114,
"h": 283.4
},
"luminance": 0.03088
}Semantic roles & 50–950 ramp
primary
#311E7E
secondary
#9CB147
accent
#E543C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F