#311CA6#311CA6
#311CA6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.1% C 0.201 H 277.1°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).
Color values
| HEX | #311CA6 |
|---|---|
| RGB | rgb(49, 28, 166) |
| HSL | hsl(249, 71%, 38%) |
| HSV | hsv(249, 83%, 65%) |
| CMYK | cmyk(70.5%, 83.1%, 0%, 34.9%) |
| CIE-LAB | lab(24.44, 49.85, -69.13) |
| CIE-LCH | lch(24.44, 85.23, 305.79°) |
| OKLab | oklab(37.1% 0.0247 -0.1998) |
| OKLCH | oklch(37.1% 0.201 277.1) |
| XYZ | xyz(8.5626, 4.2359, 36.4354) |
| Luminance | 0.0424 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 1.87
Ultramarine
#2000B1
ΔE00 3.45
Cobalt Blue
#030AA7
ΔE00 3.59
Royal Blue (survey)
#0504AA
ΔE00 3.86
Royal
#0C1793
ΔE00 4.13
True Blue
#010FCC
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311CA6 #91A61C
analogous
#1C4CA6 #311CA6 #761CA6
triadic
#311CA6 #A6311C #1CA631
tetradic
#311CA6 #A61C4C #91A61C #1CA676
square
#311CA6 #A61C4C #91A61C #1CA676
split-complementary
#311CA6 #A6761C #4CA61C
monochromatic
#120A3D #221372 #311CA6 #4125DA #6E59E3
Accessibility & contrast
On white
11.37
#311CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#311CA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311CA6
11.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311CA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311CA6 | 1.00 | 11.37 | 1.85 | 11.37 |
| #FFFFFF | 11.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FAA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #311ca6; /* rgb */ color: rgb(49, 28, 166); /* oklch */ color: oklch(37.1% 0.201 277.1);
Tailwind
colors: {
custom: {
50: '#7c5ec2',
500: '#311ca6',
950: '#000000',
},
}SCSS
$custom: #311ca6; $custom-light: #7c5ec2; $custom-dark: #000000;
JSON
{
"hex": "#311ca6",
"rgb": {
"r": 49,
"g": 28,
"b": 166
},
"hsl": {
"h": 249.13,
"s": 71.134,
"l": 38.039
},
"oklch": {
"l": 0.37099,
"c": 0.20128,
"h": 277.1
},
"luminance": 0.04237
}Semantic roles & 50–950 ramp
primary
#311CA6
secondary
#B6C757
accent
#EE3AD3
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982