#4158BF#4158BF
#4158BF is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.1% C 0.163 H 270.0°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #4158BF |
|---|---|
| RGB | rgb(65, 88, 191) |
| HSL | hsl(229, 50%, 50%) |
| HSV | hsv(229, 66%, 75%) |
| CMYK | cmyk(66%, 53.9%, 0%, 25.1%) |
| CIE-LAB | lab(41.00, 24.94, -56.82) |
| CIE-LCH | lch(41.00, 62.05, 293.70°) |
| OKLab | oklab(50.08% 0.0001 -0.1633) |
| OKLCH | oklch(50.08% 0.163 270) |
| XYZ | xyz(15.0705, 11.8635, 50.7758) |
| Luminance | 0.1187 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.41
Sapphire
#0F52BA
ΔE00 4.70
Iris
#6258C4
ΔE00 5.77
Azul
#1D5DEC
ΔE00 5.89
Denim
#1560BD
ΔE00 6.40
Dusky Blue
#475F94
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4158BF #BFA841
analogous
#4197BF #4158BF #6941BF
triadic
#4158BF #BF4158 #58BF41
tetradic
#4158BF #BF4197 #BFA841 #41BF69
square
#4158BF #BF4197 #BFA841 #41BF69
split-complementary
#4158BF #BF6941 #97BF41
monochromatic
#222E64 #314392 #4158BF #6F80CE #9DA8DE
Accessibility & contrast
On white
6.23
#4158BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#4158BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4158BF
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4158BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4158BF | 1.00 | 6.23 | 3.37 | 6.23 |
| #FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D67C3
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #4158bf; /* rgb */ color: rgb(65, 88, 191); /* oklch */ color: oklch(50.1% 0.163 270.0);
Tailwind
colors: {
custom: {
50: '#8386d3',
500: '#4158bf',
950: '#000000',
},
}SCSS
$custom: #4158bf; $custom-light: #8386d3; $custom-dark: #000000;
JSON
{
"hex": "#4158bf",
"rgb": {
"r": 65,
"g": 88,
"b": 191
},
"hsl": {
"h": 229.048,
"s": 49.606,
"l": 50.196
},
"oklch": {
"l": 0.50078,
"c": 0.16327,
"h": 270
},
"luminance": 0.11865
}Semantic roles & 50–950 ramp
primary
#4158BF
secondary
#CAC092
accent
#C04FD9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83