#3951B4#3951B4
#3951B4 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.4% C 0.159 H 269.2°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).
Color values
| HEX | #3951B4 |
|---|---|
| RGB | rgb(57, 81, 180) |
| HSL | hsl(228, 52%, 46%) |
| HSV | hsv(228, 68%, 71%) |
| CMYK | cmyk(68.3%, 55%, 0%, 29.4%) |
| CIE-LAB | lab(37.93, 24.27, -55.36) |
| CIE-LCH | lch(37.93, 60.45, 293.67°) |
| OKLab | oklab(47.4% -0.0023 -0.1593) |
| OKLCH | oklch(47.4% 0.159 269.2) |
| XYZ | xyz(12.8652, 10.0488, 44.4328) |
| Luminance | 0.1005 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.69
Cobalt
#0047AB
ΔE00 4.91
Blue Blue
#2242C7
ΔE00 5.29
Denim Blue
#3B5B92
ΔE00 6.19
Warm Blue
#4B57DB
ΔE00 6.33
Ocean Blue
#4F42B5
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3951B4 #B49C39
analogous
#398FB4 #3951B4 #5F39B4
triadic
#3951B4 #B43951 #51B439
tetradic
#3951B4 #B4398F #B49C39 #39B45F
square
#3951B4 #B4398F #B49C39 #39B45F
split-complementary
#3951B4 #B45F39 #8FB439
monochromatic
#1C2757 #2A3C86 #3951B4 #5E74CC #8D9CDB
Accessibility & contrast
On white
6.98
#3951B4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.01
#3951B4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3951B4
6.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3951B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3951B4 | 1.00 | 6.98 | 3.01 | 6.98 |
| #FFFFFF | 6.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FB7
Deuteranopia (green-blind)
#0054B2
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #3951b4; /* rgb */ color: rgb(57, 81, 180); /* oklch */ color: oklch(47.4% 0.159 269.2);
Tailwind
colors: {
custom: {
50: '#7e81cb',
500: '#3951b4',
950: '#000000',
},
}SCSS
$custom: #3951b4; $custom-light: #7e81cb; $custom-dark: #000000;
JSON
{
"hex": "#3951b4",
"rgb": {
"r": 57,
"g": 81,
"b": 180
},
"hsl": {
"h": 228.293,
"s": 51.899,
"l": 46.471
},
"oklch": {
"l": 0.47404,
"c": 0.15928,
"h": 269.2
},
"luminance": 0.1005
}Semantic roles & 50–950 ramp
primary
#3951B4
secondary
#C5B883
accent
#BF4CDB
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82