#311E83#311E83
#311E83 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.157 H 282.4°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).
Color values
| HEX | #311E83 |
|---|---|
| RGB | rgb(49, 30, 131) |
| HSL | hsl(251, 63%, 32%) |
| HSV | hsv(251, 77%, 51%) |
| CMYK | cmyk(62.6%, 77.1%, 0%, 48.6%) |
| CIE-LAB | lab(20.90, 38.08, -53.35) |
| CIE-LCH | lch(20.90, 65.54, 305.52°) |
| OKLab | oklab(33.5% 0.0338 -0.1538) |
| OKLCH | oklch(33.5% 0.157 282.4) |
| XYZ | xyz(5.8264, 3.2198, 21.7828) |
| Luminance | 0.0322 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.08
Midnight Blue
#191970
ΔE00 4.16
Indigo (survey)
#380282
ΔE00 4.56
Darkblue
#00008B
ΔE00 6.04
Indigo
#4B0082
ΔE00 6.12
Navy
#000080
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311E83 #70831E
analogous
#1E3E83 #311E83 #641E83
triadic
#311E83 #83311E #1E8331
tetradic
#311E83 #831E3E #70831E #1E8364
square
#311E83 #831E3E #70831E #1E8364
split-complementary
#311E83 #83641E #3E831E
monochromatic
#0C071F #1E1351 #311E83 #4429B5 #6147D5
Accessibility & contrast
On white
12.77
#311E83 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#311E83 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311E83
12.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311E83 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311E83 | 1.00 | 12.77 | 1.64 | 12.77 |
| #FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #311e83; /* rgb */ color: rgb(49, 30, 131); /* oklch */ color: oklch(33.5% 0.157 282.4);
Tailwind
colors: {
custom: {
50: '#745ca8',
500: '#311e83',
950: '#000000',
},
}SCSS
$custom: #311e83; $custom-light: #745ca8; $custom-dark: #000000;
JSON
{
"hex": "#311e83",
"rgb": {
"r": 49,
"g": 30,
"b": 131
},
"hsl": {
"h": 251.287,
"s": 62.733,
"l": 31.569
},
"oklch": {
"l": 0.33495,
"c": 0.15748,
"h": 282.4
},
"luminance": 0.0322
}Semantic roles & 50–950 ramp
primary
#311E83
secondary
#A1B647
accent
#E642C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F