#311783#311783
#311783 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.164 H 283.5°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).
Color values
| HEX | #311783 |
|---|---|
| RGB | rgb(49, 23, 131) |
| HSL | hsl(254, 70%, 30%) |
| HSV | hsv(254, 82%, 51%) |
| CMYK | cmyk(62.6%, 82.4%, 0%, 48.6%) |
| CIE-LAB | lab(19.66, 41.66, -55.40) |
| CIE-LCH | lch(19.66, 69.32, 306.94°) |
| OKLab | oklab(32.62% 0.0385 -0.1597) |
| OKLCH | oklch(32.62% 0.164 283.5) |
| XYZ | xyz(5.6685, 2.9041, 21.7302) |
| Luminance | 0.0290 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.10
Royal
#0C1793
ΔE00 3.89
Midnight Blue
#191970
ΔE00 4.42
Darkblue
#00008B
ΔE00 4.95
Indigo
#4B0082
ΔE00 5.09
Navy
#000080
ΔE00 5.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311783 #698317
analogous
#173383 #311783 #671783
triadic
#311783 #833117 #178331
tetradic
#311783 #831733 #698317 #178367
square
#311783 #831733 #698317 #178367
split-complementary
#311783 #836717 #338317
monochromatic
#0A051B #1E0E4F #311783 #4420B7 #6038DC
Accessibility & contrast
On white
13.28
#311783 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#311783 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311783
13.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311783 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311783 | 1.00 | 13.28 | 1.58 | 13.28 |
| #FFFFFF | 13.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #311783; /* rgb */ color: rgb(49, 23, 131); /* oklch */ color: oklch(32.6% 0.164 283.5);
Tailwind
colors: {
custom: {
50: '#7559a8',
500: '#311783',
950: '#000000',
},
}SCSS
$custom: #311783; $custom-light: #7559a8; $custom-dark: #000000;
JSON
{
"hex": "#311783",
"rgb": {
"r": 49,
"g": 23,
"b": 131
},
"hsl": {
"h": 254.444,
"s": 70.13,
"l": 30.196
},
"oklch": {
"l": 0.32623,
"c": 0.1643,
"h": 283.5
},
"luminance": 0.02904
}Semantic roles & 50–950 ramp
primary
#311783
secondary
#9AB73F
accent
#ED3BC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F