#311683#311683
#311683 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.165 H 283.7°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).
Color values
| HEX | #311683 |
|---|---|
| RGB | rgb(49, 22, 131) |
| HSL | hsl(255, 71%, 30%) |
| HSV | hsv(255, 83%, 51%) |
| CMYK | cmyk(62.6%, 83.2%, 0%, 48.6%) |
| CIE-LAB | lab(19.50, 42.13, -55.67) |
| CIE-LCH | lch(19.50, 69.81, 307.12°) |
| OKLab | oklab(32.51% 0.039 -0.1605) |
| OKLCH | oklch(32.51% 0.165 283.7) |
| XYZ | xyz(5.6490, 2.8651, 21.7237) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.92
Royal
#0C1793
ΔE00 3.90
Midnight Blue
#191970
ΔE00 4.49
Darkblue
#00008B
ΔE00 4.83
Indigo
#4B0082
ΔE00 4.98
Navy
#000080
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311683 #688316
analogous
#163283 #311683 #671683
triadic
#311683 #833116 #168331
tetradic
#311683 #831632 #688316 #168367
square
#311683 #831632 #688316 #168367
split-complementary
#311683 #836716 #328316
monochromatic
#0A041A #1D0D4F #311683 #451FB7 #6036DD
Accessibility & contrast
On white
13.35
#311683 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#311683 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311683
13.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311683 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311683 | 1.00 | 13.35 | 1.57 | 13.35 |
| #FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #311683; /* rgb */ color: rgb(49, 22, 131); /* oklch */ color: oklch(32.5% 0.165 283.7);
Tailwind
colors: {
custom: {
50: '#7558a8',
500: '#311683',
950: '#000000',
},
}SCSS
$custom: #311683; $custom-light: #7558a8; $custom-dark: #000000;
JSON
{
"hex": "#311683",
"rgb": {
"r": 49,
"g": 22,
"b": 131
},
"hsl": {
"h": 254.862,
"s": 71.242,
"l": 30
},
"oklch": {
"l": 0.32512,
"c": 0.16518,
"h": 283.7
},
"luminance": 0.02865
}Semantic roles & 50–950 ramp
primary
#311683
secondary
#99B73D
accent
#EE3AC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F