#311C7F#311C7F
#311C7F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.155 H 283.6°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).
Color values
| HEX | #311C7F |
|---|---|
| RGB | rgb(49, 28, 127) |
| HSL | hsl(253, 64%, 30%) |
| HSV | hsv(253, 78%, 50%) |
| CMYK | cmyk(61.4%, 78%, 0%, 50.2%) |
| CIE-LAB | lab(20.11, 37.90, -52.13) |
| CIE-LCH | lch(20.11, 64.45, 306.02°) |
| OKLab | oklab(32.81% 0.0363 -0.1502) |
| OKLCH | oklch(32.81% 0.155 283.6) |
| XYZ | xyz(5.5115, 3.0154, 20.3662) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.82
Indigo (survey)
#380282
ΔE00 4.20
Royal
#0C1793
ΔE00 4.43
Indigo
#4B0082
ΔE00 5.82
Darkblue
#00008B
ΔE00 5.93
Navy
#000080
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311C7F #6A7F1C
analogous
#1C397F #311C7F #621C7F
triadic
#311C7F #7F311C #1C7F31
tetradic
#311C7F #7F1C39 #6A7F1C #1C7F62
square
#311C7F #7F1C39 #6A7F1C #1C7F62
split-complementary
#311C7F #7F621C #397F1C
monochromatic
#0A061B #1E114D #311C7F #4427B1 #6040D5
Accessibility & contrast
On white
13.10
#311C7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#311C7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311C7F
13.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311C7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311C7F | 1.00 | 13.10 | 1.60 | 13.10 |
| #FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #311c7f; /* rgb */ color: rgb(49, 28, 127); /* oklch */ color: oklch(32.8% 0.155 283.6);
Tailwind
colors: {
custom: {
50: '#745ba5',
500: '#311c7f',
950: '#000000',
},
}SCSS
$custom: #311c7f; $custom-light: #745ba5; $custom-dark: #000000;
JSON
{
"hex": "#311c7f",
"rgb": {
"r": 49,
"g": 28,
"b": 127
},
"hsl": {
"h": 252.727,
"s": 63.871,
"l": 30.392
},
"oklch": {
"l": 0.32808,
"c": 0.15457,
"h": 283.6
},
"luminance": 0.03016
}Semantic roles & 50–950 ramp
primary
#311C7F
secondary
#9BB344
accent
#E741C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F