#3871C5#3871C5
#3871C5 is a mid, vivid blue. Relative luminance 0.167; OKLCH L 55.3% C 0.144 H 258.2°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #3871C5 |
|---|---|
| RGB | rgb(56, 113, 197) |
| HSL | hsl(216, 56%, 50%) |
| HSV | hsv(216, 72%, 77%) |
| CMYK | cmyk(71.6%, 42.6%, 0%, 22.7%) |
| CIE-LAB | lab(47.85, 9.81, -49.29) |
| CIE-LCH | lch(47.85, 50.25, 281.26°) |
| OKLab | oklab(55.33% -0.0295 -0.1409) |
| OKLCH | oklch(55.33% 0.144 258.2) |
| XYZ | xyz(17.6104, 16.6803, 55.1040) |
| Luminance | 0.1668 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Medium Blue
#2C6FBB
ΔE00 2.27
Windows Blue
#3778BF
ΔE00 3.10
French Blue
#436BAD
ΔE00 3.69
Flat Blue
#3C73A8
ΔE00 3.72
Mid Blue
#276AB3
ΔE00 3.87
Bluish
#2976BB
ΔE00 3.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3871C5 #C58C38
analogous
#38B7C5 #3871C5 #4638C5
triadic
#3871C5 #C53871 #71C538
tetradic
#3871C5 #C538B7 #C58C38 #38C546
square
#3871C5 #C538B7 #C58C38 #38C546
split-complementary
#3871C5 #C54638 #B7C538
monochromatic
#1D3A66 #2A5695 #3871C5 #6793D4 #96B5E1
Accessibility & contrast
On white
4.84
#3871C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.34
#3871C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3871C5
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3871C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3871C5 | 1.00 | 4.84 | 4.34 | 4.84 |
| #FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4879C8
Deuteranopia (green-blind)
#306CC3
Tritanopia (blue-blind)
#008591
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #3871c5; /* rgb */ color: rgb(56, 113, 197); /* oklch */ color: oklch(55.3% 0.144 258.2);
Tailwind
colors: {
custom: {
50: '#8099d7',
500: '#3871c5',
950: '#000000',
},
}SCSS
$custom: #3871c5; $custom-light: #8099d7; $custom-dark: #000000;
JSON
{
"hex": "#3871c5",
"rgb": {
"r": 56,
"g": 113,
"b": 197
},
"hsl": {
"h": 215.745,
"s": 55.731,
"l": 49.608
},
"oklch": {
"l": 0.55329,
"c": 0.14393,
"h": 258.2
},
"luminance": 0.16682
}Semantic roles & 50–950 ramp
primary
#3871C5
secondary
#CDB38C
accent
#A249DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0B0D14
muted
#7C7E83