#3851C5#3851C5
#3851C5 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.7% C 0.183 H 269.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).
Color values
| HEX | #3851C5 |
|---|---|
| RGB | rgb(56, 81, 197) |
| HSL | hsl(229, 56%, 50%) |
| HSV | hsv(229, 72%, 77%) |
| CMYK | cmyk(71.6%, 58.9%, 0%, 22.7%) |
| CIE-LAB | lab(39.17, 30.29, -63.31) |
| CIE-LCH | lch(39.17, 70.18, 295.57°) |
| OKLab | oklab(48.72% -0.0026 -0.1826) |
| OKLCH | oklch(48.72% 0.183 269.2) |
| XYZ | xyz(14.6479, 10.7553, 54.1165) |
| Luminance | 0.1076 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.35
Sapphire
#0F52BA
ΔE00 4.39
Blue Blue
#2242C7
ΔE00 4.52
Blue (survey)
#0343DF
ΔE00 5.05
Cobalt
#0047AB
ΔE00 6.15
Azul
#1D5DEC
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3851C5 #C5AC38
analogous
#3897C5 #3851C5 #6638C5
triadic
#3851C5 #C53851 #51C538
tetradic
#3851C5 #C53897 #C5AC38 #38C566
square
#3851C5 #C53897 #C5AC38 #38C566
split-complementary
#3851C5 #C56638 #97C538
monochromatic
#1D2A66 #2A3D95 #3851C5 #677AD4 #96A3E1
Accessibility & contrast
On white
6.66
#3851C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.15
#3851C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3851C5
6.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3851C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3851C5 | 1.00 | 6.66 | 3.15 | 6.66 |
| #FFFFFF | 6.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#0056C3
Tritanopia (blue-blind)
#006E83
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #3851c5; /* rgb */ color: rgb(56, 81, 197); /* oklch */ color: oklch(48.7% 0.183 269.2);
Tailwind
colors: {
custom: {
50: '#8181d7',
500: '#3851c5',
950: '#000000',
},
}SCSS
$custom: #3851c5; $custom-light: #8181d7; $custom-dark: #000000;
JSON
{
"hex": "#3851c5",
"rgb": {
"r": 56,
"g": 81,
"b": 197
},
"hsl": {
"h": 229.362,
"s": 55.731,
"l": 49.608
},
"oklch": {
"l": 0.4872,
"c": 0.18266,
"h": 269.2
},
"luminance": 0.10757
}Semantic roles & 50–950 ramp
primary
#3851C5
secondary
#CDC18C
accent
#C449DF
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83