#311A8E#311A8E
#311A8E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.175 H 280.9°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).
Color values
| HEX | #311A8E |
|---|---|
| RGB | rgb(49, 26, 142) |
| HSL | hsl(252, 69%, 33%) |
| HSV | hsv(252, 82%, 56%) |
| CMYK | cmyk(65.5%, 81.7%, 0%, 44.3%) |
| CIE-LAB | lab(21.37, 43.56, -59.47) |
| CIE-LCH | lch(21.37, 73.71, 306.22°) |
| OKLab | oklab(34.18% 0.0332 -0.1716) |
| OKLCH | oklch(34.18% 0.175 280.9) |
| XYZ | xyz(6.5170, 3.3442, 25.8880) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.08
Indigo (survey)
#380282
ΔE00 4.03
Cobalt Blue
#030AA7
ΔE00 4.60
Indigo Blue
#3A18B1
ΔE00 4.98
Royal Blue (survey)
#0504AA
ΔE00 5.01
Darkblue
#00008B
ΔE00 5.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311A8E #778E1A
analogous
#1A3D8E #311A8E #6B1A8E
triadic
#311A8E #8E311A #1A8E31
tetradic
#311A8E #8E1A3D #778E1A #1A8E6B
square
#311A8E #8E1A3D #778E1A #1A8E6B
split-complementary
#311A8E #8E6B1A #3D8E1A
monochromatic
#0D0727 #1F115A #311A8E #4323C2 #6345DD
Accessibility & contrast
On white
12.58
#311A8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#311A8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311A8E
12.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311A8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311A8E | 1.00 | 12.58 | 1.67 | 12.58 |
| #FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #311a8e; /* rgb */ color: rgb(49, 26, 142); /* oklch */ color: oklch(34.2% 0.175 280.9);
Tailwind
colors: {
custom: {
50: '#775bb0',
500: '#311a8e',
950: '#000000',
},
}SCSS
$custom: #311a8e; $custom-light: #775bb0; $custom-dark: #000000;
JSON
{
"hex": "#311a8e",
"rgb": {
"r": 49,
"g": 26,
"b": 142
},
"hsl": {
"h": 251.897,
"s": 69.048,
"l": 32.941
},
"oklch": {
"l": 0.34176,
"c": 0.17479,
"h": 280.9
},
"luminance": 0.03345
}Semantic roles & 50–950 ramp
primary
#311A8E
secondary
#A6BE45
accent
#EC3CC9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980