#311681#311681
#311681 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.163 H 284.1°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).
Color values
| HEX | #311681 |
|---|---|
| RGB | rgb(49, 22, 129) |
| HSL | hsl(255, 71%, 30%) |
| HSV | hsv(255, 83%, 51%) |
| CMYK | cmyk(62%, 82.9%, 0%, 49.4%) |
| CIE-LAB | lab(19.27, 41.53, -54.77) |
| CIE-LCH | lch(19.27, 68.74, 307.17°) |
| OKLab | oklab(32.29% 0.0397 -0.1579) |
| OKLCH | oklch(32.29% 0.163 284.1) |
| XYZ | xyz(5.5148, 2.8114, 21.0167) |
| Luminance | 0.0281 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.93
Royal
#0C1793
ΔE00 4.12
Midnight Blue
#191970
ΔE00 4.31
Darkblue
#00008B
ΔE00 4.94
Indigo
#4B0082
ΔE00 4.96
Navy
#000080
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311681 #668116
analogous
#163181 #311681 #671681
triadic
#311681 #813116 #168131
tetradic
#311681 #811631 #668116 #168167
square
#311681 #811631 #668116 #168167
split-complementary
#311681 #816716 #318116
monochromatic
#0A041A #1D0D4D #311681 #451FB5 #5F35DD
Accessibility & contrast
On white
13.44
#311681 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#311681 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311681
13.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311681 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311681 | 1.00 | 13.44 | 1.56 | 13.44 |
| #FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #311681; /* rgb */ color: rgb(49, 22, 129); /* oklch */ color: oklch(32.3% 0.163 284.1);
Tailwind
colors: {
custom: {
50: '#7458a7',
500: '#311681',
950: '#000000',
},
}SCSS
$custom: #311681; $custom-light: #7458a7; $custom-dark: #000000;
JSON
{
"hex": "#311681",
"rgb": {
"r": 49,
"g": 22,
"b": 129
},
"hsl": {
"h": 255.14,
"s": 70.861,
"l": 29.608
},
"oklch": {
"l": 0.32291,
"c": 0.1628,
"h": 284.1
},
"luminance": 0.02812
}Semantic roles & 50–950 ramp
primary
#311681
secondary
#97B63D
accent
#EE3AC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F