#311680#311680
#311680 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.162 H 284.4°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #311680 |
|---|---|
| RGB | rgb(49, 22, 128) |
| HSL | hsl(255, 71%, 29%) |
| HSV | hsv(255, 83%, 50%) |
| CMYK | cmyk(61.7%, 82.8%, 0%, 49.8%) |
| CIE-LAB | lab(19.16, 41.23, -54.32) |
| CIE-LCH | lch(19.16, 68.20, 307.20°) |
| OKLab | oklab(32.18% 0.0401 -0.1566) |
| OKLCH | oklch(32.18% 0.162 284.4) |
| XYZ | xyz(5.4486, 2.7849, 20.6683) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.94
Midnight Blue
#191970
ΔE00 4.23
Royal
#0C1793
ΔE00 4.23
Indigo
#4B0082
ΔE00 4.97
Darkblue
#00008B
ΔE00 5.00
Navy
#000080
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311680 #658016
analogous
#163080 #311680 #661680
triadic
#311680 #803116 #168031
tetradic
#311680 #801630 #658016 #168066
square
#311680 #801630 #658016 #168066
split-complementary
#311680 #806616 #308016
monochromatic
#0A041A #1D0D4C #311680 #451FB4 #5F34DC
Accessibility & contrast
On white
13.49
#311680 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#311680 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311680
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311680 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311680 | 1.00 | 13.49 | 1.56 | 13.49 |
| #FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #311680; /* rgb */ color: rgb(49, 22, 128); /* oklch */ color: oklch(32.2% 0.162 284.4);
Tailwind
colors: {
custom: {
50: '#7458a6',
500: '#311680',
950: '#000000',
},
}SCSS
$custom: #311680; $custom-light: #7458a6; $custom-dark: #000000;
JSON
{
"hex": "#311680",
"rgb": {
"r": 49,
"g": 22,
"b": 128
},
"hsl": {
"h": 255.283,
"s": 70.667,
"l": 29.412
},
"oklch": {
"l": 0.32181,
"c": 0.16162,
"h": 284.4
},
"luminance": 0.02785
}Semantic roles & 50–950 ramp
primary
#311680
secondary
#96B53D
accent
#ED3AC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F