#3951AB#3951AB
#3951AB is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.147 H 268.9°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).
Color values
| HEX | #3951AB |
|---|---|
| RGB | rgb(57, 81, 171) |
| HSL | hsl(227, 50%, 45%) |
| HSV | hsv(227, 67%, 67%) |
| CMYK | cmyk(66.7%, 52.6%, 0%, 32.9%) |
| CIE-LAB | lab(37.29, 20.99, -51.08) |
| CIE-LCH | lch(37.29, 55.22, 292.34°) |
| OKLab | oklab(46.72% -0.0029 -0.1466) |
| OKLCH | oklch(46.72% 0.147 268.9) |
| XYZ | xyz(11.9779, 9.6939, 39.7601) |
| Luminance | 0.0969 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.84
Cobalt
#0047AB
ΔE00 4.61
Denim Blue
#3B5B92
ΔE00 5.31
Cobalt (survey)
#1E488F
ΔE00 5.68
Dusk Blue
#26538D
ΔE00 6.01
Dusky Blue
#475F94
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3951AB #AB9339
analogous
#398AAB #3951AB #5A39AB
triadic
#3951AB #AB3951 #51AB39
tetradic
#3951AB #AB398A #AB9339 #39AB5A
square
#3951AB #AB398A #AB9339 #39AB5A
split-complementary
#3951AB #AB5A39 #8AAB39
monochromatic
#1A264F #2A3B7D #3951AB #5971C8 #8798D7
Accessibility & contrast
On white
7.15
#3951AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#3951AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3951AB
7.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3951AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3951AB | 1.00 | 7.15 | 2.94 | 7.15 |
| #FFFFFF | 7.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#185DAE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#006676
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #3951ab; /* rgb */ color: rgb(57, 81, 171); /* oklch */ color: oklch(46.7% 0.147 268.9);
Tailwind
colors: {
custom: {
50: '#7c81c5',
500: '#3951ab',
950: '#000000',
},
}SCSS
$custom: #3951ab; $custom-light: #7c81c5; $custom-dark: #000000;
JSON
{
"hex": "#3951ab",
"rgb": {
"r": 57,
"g": 81,
"b": 171
},
"hsl": {
"h": 227.368,
"s": 50,
"l": 44.706
},
"oklch": {
"l": 0.46716,
"c": 0.14667,
"h": 268.9
},
"luminance": 0.09695
}Semantic roles & 50–950 ramp
primary
#3951AB
secondary
#C1B37F
accent
#BC4EDA
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82