#311C92#311C92
#311C92 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.178 H 280.0°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).
Color values
| HEX | #311C92 |
|---|---|
| RGB | rgb(49, 28, 146) |
| HSL | hsl(251, 68%, 34%) |
| HSV | hsv(251, 81%, 57%) |
| CMYK | cmyk(66.4%, 80.8%, 0%, 42.7%) |
| CIE-LAB | lab(22.15, 43.81, -60.66) |
| CIE-LCH | lch(22.15, 74.82, 305.84°) |
| OKLab | oklab(34.85% 0.0308 -0.1751) |
| OKLCH | oklch(34.85% 0.178 280) |
| XYZ | xyz(6.8685, 3.5582, 27.5134) |
| Luminance | 0.0356 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.05
Cobalt Blue
#030AA7
ΔE00 4.40
Indigo Blue
#3A18B1
ΔE00 4.44
Indigo (survey)
#380282
ΔE00 4.63
Royal Blue (survey)
#0504AA
ΔE00 4.82
Ultramarine
#2000B1
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311C92 #7D921C
analogous
#1C4292 #311C92 #6C1C92
triadic
#311C92 #92311C #1C9231
tetradic
#311C92 #921C42 #7D921C #1C926C
square
#311C92 #921C42 #7D921C #1C926C
split-complementary
#311C92 #926C1C #42921C
monochromatic
#0F082B #20125F #311C92 #4226C5 #664CDD
Accessibility & contrast
On white
12.27
#311C92 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#311C92 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311C92
12.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311C92 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311C92 | 1.00 | 12.27 | 1.71 | 12.27 |
| #FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003995
Deuteranopia (green-blind)
#003090
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #311c92; /* rgb */ color: rgb(49, 28, 146); /* oklch */ color: oklch(34.9% 0.178 280.0);
Tailwind
colors: {
custom: {
50: '#785cb3',
500: '#311c92',
950: '#000000',
},
}SCSS
$custom: #311c92; $custom-light: #785cb3; $custom-dark: #000000;
JSON
{
"hex": "#311c92",
"rgb": {
"r": 49,
"g": 28,
"b": 146
},
"hsl": {
"h": 250.678,
"s": 67.816,
"l": 34.118
},
"oklch": {
"l": 0.34851,
"c": 0.17781,
"h": 280
},
"luminance": 0.03559
}Semantic roles & 50–950 ramp
primary
#311C92
secondary
#AABF4B
accent
#EB3DCC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980