#311E7F#311E7F
#311E7F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.152 H 283.2°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).
Color values
| HEX | #311E7F |
|---|---|
| RGB | rgb(49, 30, 127) |
| HSL | hsl(252, 62%, 31%) |
| HSV | hsv(252, 76%, 50%) |
| CMYK | cmyk(61.4%, 76.4%, 0%, 50.2%) |
| CIE-LAB | lab(20.49, 36.80, -51.49) |
| CIE-LCH | lch(20.49, 63.29, 305.56°) |
| OKLab | oklab(33.08% 0.0348 -0.1484) |
| OKLCH | oklch(33.08% 0.152 283.2) |
| XYZ | xyz(5.5605, 3.1135, 20.3825) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.80
Royal
#0C1793
ΔE00 4.54
Indigo (survey)
#380282
ΔE00 4.66
Indigo
#4B0082
ΔE00 6.17
Darkblue
#00008B
ΔE00 6.29
Dark Royal Blue
#02066F
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311E7F #6C7F1E
analogous
#1E3B7F #311E7F #611E7F
triadic
#311E7F #7F311E #1E7F31
tetradic
#311E7F #7F1E3B #6C7F1E #1E7F61
square
#311E7F #7F1E3B #6C7F1E #1E7F61
split-complementary
#311E7F #7F611E #3B7F1E
monochromatic
#0B071C #1E124D #311E7F #442AB1 #6044D3
Accessibility & contrast
On white
12.94
#311E7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#311E7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311E7F
12.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311E7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311E7F | 1.00 | 12.94 | 1.62 | 12.94 |
| #FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #311e7f; /* rgb */ color: rgb(49, 30, 127); /* oklch */ color: oklch(33.1% 0.152 283.2);
Tailwind
colors: {
custom: {
50: '#735ca5',
500: '#311e7f',
950: '#000000',
},
}SCSS
$custom: #311e7f; $custom-light: #735ca5; $custom-dark: #000000;
JSON
{
"hex": "#311e7f",
"rgb": {
"r": 49,
"g": 30,
"b": 127
},
"hsl": {
"h": 251.753,
"s": 61.783,
"l": 30.784
},
"oklch": {
"l": 0.33081,
"c": 0.15242,
"h": 283.2
},
"luminance": 0.03114
}Semantic roles & 50–950 ramp
primary
#311E7F
secondary
#9DB247
accent
#E543C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F