#311F83#311F83
#311F83 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.156 H 282.2°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).
Color values
| HEX | #311F83 |
|---|---|
| RGB | rgb(49, 31, 131) |
| HSL | hsl(251, 62%, 32%) |
| HSV | hsv(251, 76%, 51%) |
| CMYK | cmyk(62.6%, 76.3%, 0%, 48.6%) |
| CIE-LAB | lab(21.10, 37.53, -53.02) |
| CIE-LCH | lch(21.10, 64.96, 305.29°) |
| OKLab | oklab(33.63% 0.0331 -0.1529) |
| OKLCH | oklch(33.63% 0.156 282.2) |
| XYZ | xyz(5.8521, 3.2712, 21.7914) |
| Luminance | 0.0327 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.16
Midnight Blue
#191970
ΔE00 4.17
Indigo (survey)
#380282
ΔE00 4.80
Darkblue
#00008B
ΔE00 6.23
Indigo
#4B0082
ΔE00 6.31
Cobalt Blue
#030AA7
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311F83 #71831F
analogous
#1F3F83 #311F83 #631F83
triadic
#311F83 #83311F #1F8331
tetradic
#311F83 #831F3F #71831F #1F8363
square
#311F83 #831F3F #71831F #1F8363
split-complementary
#311F83 #83631F #3F831F
monochromatic
#0C0820 #1E1352 #311F83 #442BB4 #6249D4
Accessibility & contrast
On white
12.69
#311F83 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#311F83 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311F83
12.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311F83 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311F83 | 1.00 | 12.69 | 1.65 | 12.69 |
| #FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #311f83; /* rgb */ color: rgb(49, 31, 131); /* oklch */ color: oklch(33.6% 0.156 282.2);
Tailwind
colors: {
custom: {
50: '#745da8',
500: '#311f83',
950: '#000000',
},
}SCSS
$custom: #311f83; $custom-light: #745da8; $custom-dark: #000000;
JSON
{
"hex": "#311f83",
"rgb": {
"r": 49,
"g": 31,
"b": 131
},
"hsl": {
"h": 250.8,
"s": 61.728,
"l": 31.765
},
"oklch": {
"l": 0.33632,
"c": 0.15642,
"h": 282.2
},
"luminance": 0.03272
}Semantic roles & 50–950 ramp
primary
#311F83
secondary
#A2B648
accent
#E543C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F