#311C7D#311C7D
#311C7D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.152 H 284.0°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #311C7D |
|---|---|
| RGB | rgb(49, 28, 125) |
| HSL | hsl(253, 63%, 30%) |
| HSV | hsv(253, 78%, 49%) |
| CMYK | cmyk(60.8%, 77.6%, 0%, 51%) |
| CIE-LAB | lab(19.90, 37.27, -51.20) |
| CIE-LCH | lch(19.90, 63.33, 306.05°) |
| OKLab | oklab(32.6% 0.0369 -0.1475) |
| OKLCH | oklch(32.6% 0.152 284) |
| XYZ | xyz(5.3824, 2.9638, 19.6865) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.66
Indigo (survey)
#380282
ΔE00 4.28
Royal
#0C1793
ΔE00 4.68
Indigo
#4B0082
ΔE00 5.86
Dark Royal Blue
#02066F
ΔE00 6.01
Darkblue
#00008B
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311C7D #687D1C
analogous
#1C377D #311C7D #621C7D
triadic
#311C7D #7D311C #1C7D31
tetradic
#311C7D #7D1C37 #687D1C #1C7D62
square
#311C7D #7D1C37 #687D1C #1C7D62
split-complementary
#311C7D #7D621C #377D1C
monochromatic
#0A0619 #1D114B #311C7D #4527AF #603FD4
Accessibility & contrast
On white
13.18
#311C7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#311C7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311C7D
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311C7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311C7D | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#03374B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #311c7d; /* rgb */ color: rgb(49, 28, 125); /* oklch */ color: oklch(32.6% 0.152 284.0);
Tailwind
colors: {
custom: {
50: '#735ba4',
500: '#311c7d',
950: '#000000',
},
}SCSS
$custom: #311c7d; $custom-light: #735ba4; $custom-dark: #000000;
JSON
{
"hex": "#311c7d",
"rgb": {
"r": 49,
"g": 28,
"b": 125
},
"hsl": {
"h": 252.99,
"s": 63.399,
"l": 30
},
"oklch": {
"l": 0.326,
"c": 0.15206,
"h": 284
},
"luminance": 0.02964
}Semantic roles & 50–950 ramp
primary
#311C7D
secondary
#99B144
accent
#E641C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F