#3851BC#3851BC
#3851BC is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.0% C 0.171 H 269.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).
Color values
| HEX | #3851BC |
|---|---|
| RGB | rgb(56, 81, 188) |
| HSL | hsl(229, 54%, 48%) |
| HSV | hsv(229, 70%, 74%) |
| CMYK | cmyk(70.2%, 56.9%, 0%, 26.3%) |
| CIE-LAB | lab(38.47, 27.03, -59.19) |
| CIE-LCH | lch(38.47, 65.07, 294.54°) |
| OKLab | oklab(47.99% -0.0028 -0.1705) |
| OKLCH | oklch(47.99% 0.171 269) |
| XYZ | xyz(13.6473, 10.3551, 48.8467) |
| Luminance | 0.1036 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.80
Blue Blue
#2242C7
ΔE00 4.78
Cobalt
#0047AB
ΔE00 5.35
Warm Blue
#4B57DB
ΔE00 5.40
Blue (survey)
#0343DF
ΔE00 5.86
Ocean Blue
#4F42B5
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3851BC #BCA338
analogous
#3893BC #3851BC #6138BC
triadic
#3851BC #BC3851 #51BC38
tetradic
#3851BC #BC3893 #BCA338 #38BC61
square
#3851BC #BC3893 #BCA338 #38BC61
split-complementary
#3851BC #BC6138 #93BC38
monochromatic
#1C285E #2A3D8D #3851BC #6176D0 #909FDE
Accessibility & contrast
On white
6.84
#3851BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.07
#3851BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3851BC
6.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3851BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3851BC | 1.00 | 6.84 | 3.07 | 6.84 |
| #FFFFFF | 6.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#006B7E
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #3851bc; /* rgb */ color: rgb(56, 81, 188); /* oklch */ color: oklch(48.0% 0.171 269.0);
Tailwind
colors: {
custom: {
50: '#7f81d1',
500: '#3851bc',
950: '#000000',
},
}SCSS
$custom: #3851bc; $custom-light: #7f81d1; $custom-dark: #000000;
JSON
{
"hex": "#3851bc",
"rgb": {
"r": 56,
"g": 81,
"b": 188
},
"hsl": {
"h": 228.636,
"s": 54.098,
"l": 47.843
},
"oklch": {
"l": 0.47985,
"c": 0.17054,
"h": 269
},
"luminance": 0.10356
}Semantic roles & 50–950 ramp
primary
#3851BC
secondary
#C9BC87
accent
#C24ADD
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0A14
muted
#7C7C82