#4158CB#4158CB
#4158CB is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.0% C 0.180 H 270.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).
Color values
| HEX | #4158CB |
|---|---|
| RGB | rgb(65, 88, 203) |
| HSL | hsl(230, 57%, 53%) |
| HSV | hsv(230, 68%, 80%) |
| CMYK | cmyk(68%, 56.7%, 0%, 20.4%) |
| CIE-LAB | lab(41.87, 29.19, -62.37) |
| CIE-LCH | lch(41.87, 68.87, 295.08°) |
| OKLab | oklab(51% 0.0007 -0.1796) |
| OKLCH | oklch(51% 0.18 270.2) |
| XYZ | xyz(16.4455, 12.4135, 58.0177) |
| Luminance | 0.1241 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.86
Azul
#1D5DEC
ΔE00 4.64
Iris
#6258C4
ΔE00 5.38
Sapphire
#0F52BA
ΔE00 5.50
Dark Periwinkle
#665FD1
ΔE00 5.99
Electric Blue
#0652FF
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4158CB #CBB441
analogous
#419DCB #4158CB #6F41CB
triadic
#4158CB #CB4158 #58CB41
tetradic
#4158CB #CB419D #CBB441 #41CB6F
square
#4158CB #CB419D #CBB441 #41CB6F
split-complementary
#4158CB #CB6F41 #9DCB41
monochromatic
#1F2D72 #2C40A2 #4158CB #7182D8 #A1ACE5
Accessibility & contrast
On white
6.03
#4158CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#4158CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4158CB
6.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4158CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4158CB | 1.00 | 6.03 | 3.48 | 6.03 |
| #FFFFFF | 6.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#007489
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #4158cb; /* rgb */ color: rgb(65, 88, 203); /* oklch */ color: oklch(51.0% 0.180 270.2);
Tailwind
colors: {
custom: {
50: '#8686dc',
500: '#4158cb',
950: '#000000',
},
}SCSS
$custom: #4158cb; $custom-light: #8686dc; $custom-dark: #000000;
JSON
{
"hex": "#4158cb",
"rgb": {
"r": 65,
"g": 88,
"b": 203
},
"hsl": {
"h": 230,
"s": 57.025,
"l": 52.549
},
"oklch": {
"l": 0.51003,
"c": 0.1796,
"h": 270.2
},
"luminance": 0.12415
}Semantic roles & 50–950 ramp
primary
#4158CB
secondary
#D2C896
accent
#C748E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83