#311E7D#311E7D
#311E7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.150 H 283.6°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).
Color values
| HEX | #311E7D |
|---|---|
| RGB | rgb(49, 30, 125) |
| HSL | hsl(252, 61%, 30%) |
| HSV | hsv(252, 76%, 49%) |
| CMYK | cmyk(60.8%, 76%, 0%, 51%) |
| CIE-LAB | lab(20.29, 36.17, -50.55) |
| CIE-LCH | lch(20.29, 62.16, 305.58°) |
| OKLab | oklab(32.88% 0.0353 -0.1456) |
| OKLCH | oklch(32.88% 0.15 283.6) |
| XYZ | xyz(5.4314, 3.0618, 19.7028) |
| Luminance | 0.0306 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.64
Indigo (survey)
#380282
ΔE00 4.75
Royal
#0C1793
ΔE00 4.80
Indigo
#4B0082
ΔE00 6.22
Dark Royal Blue
#02066F
ΔE00 6.31
Darkblue
#00008B
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311E7D #6A7D1E
analogous
#1E3A7D #311E7D #601E7D
triadic
#311E7D #7D311E #1E7D31
tetradic
#311E7D #7D1E3A #6A7D1E #1E7D60
square
#311E7D #7D1E3A #6A7D1E #1E7D60
split-complementary
#311E7D #7D601E #3A7D1E
monochromatic
#0A061A #1E124C #311E7D #442AAE #6043D2
Accessibility & contrast
On white
13.02
#311E7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#311E7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311E7D
13.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311E7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311E7D | 1.00 | 13.02 | 1.61 | 13.02 |
| #FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#03384C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #311e7d; /* rgb */ color: rgb(49, 30, 125); /* oklch */ color: oklch(32.9% 0.150 283.6);
Tailwind
colors: {
custom: {
50: '#735ca4',
500: '#311e7d',
950: '#000000',
},
}SCSS
$custom: #311e7d; $custom-light: #735ca4; $custom-dark: #000000;
JSON
{
"hex": "#311e7d",
"rgb": {
"r": 49,
"g": 30,
"b": 125
},
"hsl": {
"h": 252,
"s": 61.29,
"l": 30.392
},
"oklch": {
"l": 0.32876,
"c": 0.14987,
"h": 283.6
},
"luminance": 0.03062
}Semantic roles & 50–950 ramp
primary
#311E7D
secondary
#9BB046
accent
#E443C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F