#3871C4#3871C4
#3871C4 is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.3% C 0.143 H 258.0°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #3871C4 |
|---|---|
| RGB | rgb(56, 113, 196) |
| HSL | hsl(216, 56%, 49%) |
| HSV | hsv(216, 71%, 77%) |
| CMYK | cmyk(71.4%, 42.3%, 0%, 23.1%) |
| CIE-LAB | lab(47.80, 9.44, -48.81) |
| CIE-LCH | lch(47.80, 49.71, 280.95°) |
| OKLab | oklab(55.27% -0.0297 -0.1395) |
| OKLCH | oklch(55.27% 0.143 258) |
| XYZ | xyz(17.4962, 16.6346, 54.5026) |
| Luminance | 0.1664 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Medium Blue
#2C6FBB
ΔE00 2.17
Windows Blue
#3778BF
ΔE00 3.05
Flat Blue
#3C73A8
ΔE00 3.61
French Blue
#436BAD
ΔE00 3.63
Mid Blue
#276AB3
ΔE00 3.77
Bluish
#2976BB
ΔE00 3.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3871C4 #C48B38
analogous
#38B7C4 #3871C4 #4538C4
triadic
#3871C4 #C43871 #71C438
tetradic
#3871C4 #C438B7 #C48B38 #38C445
square
#3871C4 #C438B7 #C48B38 #38C445
split-complementary
#3871C4 #C44538 #B7C438
monochromatic
#1D3A65 #2A5694 #3871C4 #6692D3 #96B4E1
Accessibility & contrast
On white
4.85
#3871C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.33
#3871C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3871C4
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3871C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3871C4 | 1.00 | 4.85 | 4.33 | 4.85 |
| #FFFFFF | 4.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4978C7
Deuteranopia (green-blind)
#316BC2
Tritanopia (blue-blind)
#008491
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #3871c4; /* rgb */ color: rgb(56, 113, 196); /* oklch */ color: oklch(55.3% 0.143 258.0);
Tailwind
colors: {
custom: {
50: '#8099d6',
500: '#3871c4',
950: '#000000',
},
}SCSS
$custom: #3871c4; $custom-light: #8099d6; $custom-dark: #000000;
JSON
{
"hex": "#3871c4",
"rgb": {
"r": 56,
"g": 113,
"b": 196
},
"hsl": {
"h": 215.571,
"s": 55.556,
"l": 49.412
},
"oklch": {
"l": 0.55265,
"c": 0.1426,
"h": 258
},
"luminance": 0.16637
}Semantic roles & 50–950 ramp
primary
#3871C4
secondary
#CCB28C
accent
#A249DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0B0D14
muted
#7C7E83