#3851AE#3851AE
#3851AE is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.151 H 268.6°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).
Color values
| HEX | #3851AE |
|---|---|
| RGB | rgb(56, 81, 174) |
| HSL | hsl(227, 51%, 45%) |
| HSV | hsv(227, 68%, 68%) |
| CMYK | cmyk(67.8%, 53.4%, 0%, 31.8%) |
| CIE-LAB | lab(37.45, 21.92, -52.60) |
| CIE-LCH | lch(37.45, 56.99, 292.63°) |
| OKLab | oklab(46.89% -0.0036 -0.1512) |
| OKLCH | oklch(46.89% 0.151 268.6) |
| XYZ | xyz(12.2107, 9.7804, 41.2805) |
| Luminance | 0.0978 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.60
Cobalt
#0047AB
ΔE00 4.56
Denim Blue
#3B5B92
ΔE00 5.54
Blue Blue
#2242C7
ΔE00 5.82
Cobalt (survey)
#1E488F
ΔE00 5.92
Dusk Blue
#26538D
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3851AE #AE9538
analogous
#388CAE #3851AE #5A38AE
triadic
#3851AE #AE3851 #51AE38
tetradic
#3851AE #AE388C #AE9538 #38AE5A
square
#3851AE #AE388C #AE9538 #38AE5A
split-complementary
#3851AE #AE5A38 #8CAE38
monochromatic
#1A2651 #293B80 #3851AE #5971CA #8899D9
Accessibility & contrast
On white
7.10
#3851AE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.96
#3851AE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3851AE
7.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3851AE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3851AE | 1.00 | 7.10 | 2.96 | 7.10 |
| #FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#125EB1
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #3851ae; /* rgb */ color: rgb(56, 81, 174); /* oklch */ color: oklch(46.9% 0.151 268.6);
Tailwind
colors: {
custom: {
50: '#7c81c7',
500: '#3851ae',
950: '#000000',
},
}SCSS
$custom: #3851ae; $custom-light: #7c81c7; $custom-dark: #000000;
JSON
{
"hex": "#3851ae",
"rgb": {
"r": 56,
"g": 81,
"b": 174
},
"hsl": {
"h": 227.288,
"s": 51.304,
"l": 45.098
},
"oklch": {
"l": 0.46888,
"c": 0.1512,
"h": 268.6
},
"luminance": 0.09782
}Semantic roles & 50–950 ramp
primary
#3851AE
secondary
#C3B47F
accent
#BD4DDB
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82