#311AB3#311AB3
#311AB3 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.4% C 0.217 H 275.6°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).
Color values
| HEX | #311AB3 |
|---|---|
| RGB | rgb(49, 26, 179) |
| HSL | hsl(249, 75%, 40%) |
| HSV | hsv(249, 85%, 70%) |
| CMYK | cmyk(72.6%, 85.5%, 0%, 29.8%) |
| CIE-LAB | lab(25.70, 54.48, -74.86) |
| CIE-LCH | lch(25.70, 92.59, 306.04°) |
| OKLab | oklab(38.41% 0.0214 -0.2163) |
| OKLCH | oklch(38.41% 0.217 275.6) |
| XYZ | xyz(9.7700, 4.6455, 43.0209) |
| Luminance | 0.0465 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 0.95
Ultramarine
#2000B1
ΔE00 3.18
True Blue
#010FCC
ΔE00 3.26
Mediumblue
#0000CD
ΔE00 3.71
Cobalt Blue
#030AA7
ΔE00 4.02
Royal Blue (survey)
#0504AA
ΔE00 4.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311AB3 #9CB31A
analogous
#1A4FB3 #311AB3 #7E1AB3
triadic
#311AB3 #B3311A #1AB331
tetradic
#311AB3 #B31A4F #9CB31A #1AB37E
square
#311AB3 #B31A4F #9CB31A #1AB37E
split-complementary
#311AB3 #B37E1A #4FB31A
monochromatic
#140A48 #22127E #311AB3 #452AE0 #7460E8
Accessibility & contrast
On white
10.89
#311AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#311AB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311AB3
10.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311AB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311AB3 | 1.00 | 10.89 | 1.93 | 10.89 |
| #FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043B7
Deuteranopia (green-blind)
#0036B0
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #311ab3; /* rgb */ color: rgb(49, 26, 179); /* oklch */ color: oklch(38.4% 0.217 275.6);
Tailwind
colors: {
custom: {
50: '#7f5ecb',
500: '#311ab3',
950: '#000000',
},
}SCSS
$custom: #311ab3; $custom-light: #7f5ecb; $custom-dark: #000000;
JSON
{
"hex": "#311ab3",
"rgb": {
"r": 49,
"g": 26,
"b": 179
},
"hsl": {
"h": 249.02,
"s": 74.634,
"l": 40.196
},
"oklch": {
"l": 0.38413,
"c": 0.21738,
"h": 275.6
},
"luminance": 0.04646
}Semantic roles & 50–950 ramp
primary
#311AB3
secondary
#BBCC5D
accent
#F137D5
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982