#3871C2#3871C2
#3871C2 is a mid, vivid blue. Relative luminance 0.165; OKLCH L 55.1% C 0.140 H 257.6°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #3871C2 |
|---|---|
| RGB | rgb(56, 113, 194) |
| HSL | hsl(215, 55%, 49%) |
| HSV | hsv(215, 71%, 76%) |
| CMYK | cmyk(71.1%, 41.8%, 0%, 23.9%) |
| CIE-LAB | lab(47.68, 8.71, -47.84) |
| CIE-LCH | lch(47.68, 48.63, 280.32°) |
| OKLab | oklab(55.14% -0.0301 -0.1366) |
| OKLCH | oklch(55.14% 0.14 257.6) |
| XYZ | xyz(17.2701, 16.5442, 53.3117) |
| Luminance | 0.1655 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Medium Blue
#2C6FBB
ΔE00 1.96
Windows Blue
#3778BF
ΔE00 2.96
Flat Blue
#3C73A8
ΔE00 3.40
French Blue
#436BAD
ΔE00 3.52
Mid Blue
#276AB3
ΔE00 3.59
Bluish
#2976BB
ΔE00 3.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3871C2 #C28938
analogous
#38B6C2 #3871C2 #4438C2
triadic
#3871C2 #C23871 #71C238
tetradic
#3871C2 #C238B6 #C28938 #38C244
square
#3871C2 #C238B6 #C28938 #38C244
split-complementary
#3871C2 #C24438 #B6C238
monochromatic
#1D3A63 #2A5593 #3871C2 #6592D2 #94B4E0
Accessibility & contrast
On white
4.87
#3871C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#3871C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3871C2
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3871C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3871C2 | 1.00 | 4.87 | 4.31 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4A78C5
Deuteranopia (green-blind)
#336BC0
Tritanopia (blue-blind)
#008490
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #3871c2; /* rgb */ color: rgb(56, 113, 194); /* oklch */ color: oklch(55.1% 0.140 257.6);
Tailwind
colors: {
custom: {
50: '#7f99d5',
500: '#3871c2',
950: '#000000',
},
}SCSS
$custom: #3871c2; $custom-light: #7f99d5; $custom-dark: #000000;
JSON
{
"hex": "#3871c2",
"rgb": {
"r": 56,
"g": 113,
"b": 194
},
"hsl": {
"h": 215.217,
"s": 55.2,
"l": 49.02
},
"oklch": {
"l": 0.55138,
"c": 0.13991,
"h": 257.6
},
"luminance": 0.16546
}Semantic roles & 50–950 ramp
primary
#3871C2
secondary
#CBB18A
accent
#A149DF
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83