#3851BB#3851BB
#3851BB is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.9% C 0.169 H 269.0°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).
Color values
| HEX | #3851BB |
|---|---|
| RGB | rgb(56, 81, 187) |
| HSL | hsl(229, 54%, 48%) |
| HSV | hsv(229, 70%, 73%) |
| CMYK | cmyk(70.1%, 56.7%, 0%, 26.7%) |
| CIE-LAB | lab(38.40, 26.66, -58.72) |
| CIE-LCH | lch(38.40, 64.49, 294.42°) |
| OKLab | oklab(47.91% -0.0029 -0.1692) |
| OKLCH | oklch(47.91% 0.169 269) |
| XYZ | xyz(13.5399, 10.3121, 48.2809) |
| Luminance | 0.1031 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.75
Blue Blue
#2242C7
ΔE00 4.83
Cobalt
#0047AB
ΔE00 5.27
Warm Blue
#4B57DB
ΔE00 5.52
Blue (survey)
#0343DF
ΔE00 5.96
Ocean Blue
#4F42B5
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3851BB #BBA238
analogous
#3892BB #3851BB #6138BB
triadic
#3851BB #BB3851 #51BB38
tetradic
#3851BB #BB3892 #BBA238 #38BB61
square
#3851BB #BB3892 #BBA238 #38BB61
split-complementary
#3851BB #BB6138 #92BB38
monochromatic
#1C285D #2A3D8C #3851BB #6176D0 #909FDE
Accessibility & contrast
On white
6.86
#3851BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#3851BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3851BB
6.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3851BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3851BB | 1.00 | 6.86 | 3.06 | 6.86 |
| #FFFFFF | 6.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#006B7E
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #3851bb; /* rgb */ color: rgb(56, 81, 187); /* oklch */ color: oklch(47.9% 0.169 269.0);
Tailwind
colors: {
custom: {
50: '#7f81d0',
500: '#3851bb',
950: '#000000',
},
}SCSS
$custom: #3851bb; $custom-light: #7f81d0; $custom-dark: #000000;
JSON
{
"hex": "#3851bb",
"rgb": {
"r": 56,
"g": 81,
"b": 187
},
"hsl": {
"h": 228.55,
"s": 53.909,
"l": 47.647
},
"oklch": {
"l": 0.47905,
"c": 0.16918,
"h": 269
},
"luminance": 0.10313
}Semantic roles & 50–950 ramp
primary
#3851BB
secondary
#C8BC86
accent
#C14BDD
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82