#3951AA#3951AA
#3951AA is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.6% C 0.145 H 268.8°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).
Color values
| HEX | #3951AA |
|---|---|
| RGB | rgb(57, 81, 170) |
| HSL | hsl(227, 50%, 45%) |
| HSV | hsv(227, 66%, 67%) |
| CMYK | cmyk(66.5%, 52.4%, 0%, 33.3%) |
| CIE-LAB | lab(37.22, 20.63, -50.60) |
| CIE-LCH | lch(37.22, 54.64, 292.18°) |
| OKLab | oklab(46.64% -0.003 -0.1452) |
| OKLCH | oklch(46.64% 0.145 268.8) |
| XYZ | xyz(11.8830, 9.6559, 39.2600) |
| Luminance | 0.0966 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.88
Cobalt
#0047AB
ΔE00 4.60
Denim Blue
#3B5B92
ΔE00 5.21
Cobalt (survey)
#1E488F
ΔE00 5.58
Dusk Blue
#26538D
ΔE00 5.91
Dusky Blue
#475F94
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3951AA #AA9239
analogous
#398AAA #3951AA #5A39AA
triadic
#3951AA #AA3951 #51AA39
tetradic
#3951AA #AA398A #AA9239 #39AA5A
square
#3951AA #AA398A #AA9239 #39AA5A
split-complementary
#3951AA #AA5A39 #8AAA39
monochromatic
#1A254E #2A3B7C #3951AA #5970C7 #8798D7
Accessibility & contrast
On white
7.16
#3951AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#3951AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3951AA
7.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3951AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3951AA | 1.00 | 7.16 | 2.93 | 7.16 |
| #FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A5DAD
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#006675
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #3951aa; /* rgb */ color: rgb(57, 81, 170); /* oklch */ color: oklch(46.6% 0.145 268.8);
Tailwind
colors: {
custom: {
50: '#7c81c4',
500: '#3951aa',
950: '#000000',
},
}SCSS
$custom: #3951aa; $custom-light: #7c81c4; $custom-dark: #000000;
JSON
{
"hex": "#3951aa",
"rgb": {
"r": 57,
"g": 81,
"b": 170
},
"hsl": {
"h": 227.257,
"s": 49.78,
"l": 44.51
},
"oklch": {
"l": 0.46641,
"c": 0.14526,
"h": 268.8
},
"luminance": 0.09657
}Semantic roles & 50–950 ramp
primary
#3951AA
secondary
#C1B37E
accent
#BC4ED9
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82