#311882#311882
#311882 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.162 H 283.6°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).
Color values
| HEX | #311882 |
|---|---|
| RGB | rgb(49, 24, 130) |
| HSL | hsl(254, 69%, 30%) |
| HSV | hsv(254, 82%, 51%) |
| CMYK | cmyk(62.3%, 81.5%, 0%, 49%) |
| CIE-LAB | lab(19.71, 40.88, -54.68) |
| CIE-LCH | lch(19.71, 68.27, 306.78°) |
| OKLab | oklab(32.63% 0.0382 -0.1576) |
| OKLCH | oklch(32.63% 0.162 283.6) |
| XYZ | xyz(5.6213, 2.9176, 21.3817) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.29
Royal
#0C1793
ΔE00 3.99
Midnight Blue
#191970
ΔE00 4.26
Darkblue
#00008B
ΔE00 5.13
Indigo
#4B0082
ΔE00 5.21
Navy
#000080
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311882 #698218
analogous
#183482 #311882 #661882
triadic
#311882 #823118 #188231
tetradic
#311882 #821834 #698218 #188266
square
#311882 #821834 #698218 #188266
split-complementary
#311882 #826618 #348218
monochromatic
#0A051B #1E0E4E #311882 #4422B6 #603ADB
Accessibility & contrast
On white
13.26
#311882 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#311882 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311882
13.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311882 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311882 | 1.00 | 13.26 | 1.58 | 13.26 |
| #FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #311882; /* rgb */ color: rgb(49, 24, 130); /* oklch */ color: oklch(32.6% 0.162 283.6);
Tailwind
colors: {
custom: {
50: '#7559a7',
500: '#311882',
950: '#000000',
},
}SCSS
$custom: #311882; $custom-light: #7559a7; $custom-dark: #000000;
JSON
{
"hex": "#311882",
"rgb": {
"r": 49,
"g": 24,
"b": 130
},
"hsl": {
"h": 254.151,
"s": 68.831,
"l": 30.196
},
"oklch": {
"l": 0.32628,
"c": 0.16219,
"h": 283.6
},
"luminance": 0.02918
}Semantic roles & 50–950 ramp
primary
#311882
secondary
#9AB640
accent
#EC3CC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F