#311BA1#311BA1
#311BA1 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.4% C 0.196 H 277.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).
Color values
| HEX | #311BA1 |
|---|---|
| RGB | rgb(49, 27, 161) |
| HSL | hsl(250, 71%, 37%) |
| HSV | hsv(250, 83%, 63%) |
| CMYK | cmyk(69.6%, 83.2%, 0%, 36.9%) |
| CIE-LAB | lab(23.70, 48.81, -67.31) |
| CIE-LCH | lch(23.70, 83.14, 305.94°) |
| OKLab | oklab(36.42% 0.0267 -0.1945) |
| OKLCH | oklch(36.42% 0.196 277.8) |
| XYZ | xyz(8.0895, 4.0093, 34.0589) |
| Luminance | 0.0401 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.43
Cobalt Blue
#030AA7
ΔE00 3.47
Ultramarine
#2000B1
ΔE00 3.55
Royal
#0C1793
ΔE00 3.66
Royal Blue (survey)
#0504AA
ΔE00 3.78
True Blue
#010FCC
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311BA1 #8BA11B
analogous
#1B48A1 #311BA1 #741BA1
triadic
#311BA1 #A1311B #1BA131
tetradic
#311BA1 #A11B48 #8BA11B #1BA174
square
#311BA1 #A11B48 #8BA11B #1BA174
split-complementary
#311BA1 #A1741B #48A11B
monochromatic
#110938 #21126D #311BA1 #4124D5 #6B54E2
Accessibility & contrast
On white
11.65
#311BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#311BA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311BA1
11.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311BA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311BA1 | 1.00 | 11.65 | 1.80 | 11.65 |
| #FFFFFF | 11.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00339F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #311ba1; /* rgb */ color: rgb(49, 27, 161); /* oklch */ color: oklch(36.4% 0.196 277.8);
Tailwind
colors: {
custom: {
50: '#7b5dbe',
500: '#311ba1',
950: '#000000',
},
}SCSS
$custom: #311ba1; $custom-light: #7b5dbe; $custom-dark: #000000;
JSON
{
"hex": "#311ba1",
"rgb": {
"r": 49,
"g": 27,
"b": 161
},
"hsl": {
"h": 249.851,
"s": 71.277,
"l": 36.863
},
"oklch": {
"l": 0.36424,
"c": 0.19627,
"h": 277.8
},
"luminance": 0.0401
}Semantic roles & 50–950 ramp
primary
#311BA1
secondary
#B2C552
accent
#EE3AD0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981