#4158C2#4158C2
#4158C2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.3% C 0.167 H 270.1°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).
Color values
| HEX | #4158C2 |
|---|---|
| RGB | rgb(65, 88, 194) |
| HSL | hsl(229, 51%, 51%) |
| HSV | hsv(229, 66%, 76%) |
| CMYK | cmyk(66.5%, 54.6%, 0%, 23.9%) |
| CIE-LAB | lab(41.21, 26.01, -58.22) |
| CIE-LCH | lch(41.21, 63.77, 294.07°) |
| OKLab | oklab(50.31% 0.0003 -0.1674) |
| OKLCH | oklch(50.31% 0.167 270.1) |
| XYZ | xyz(15.4040, 11.9969, 52.5323) |
| Luminance | 0.1200 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.01
Sapphire
#0F52BA
ΔE00 4.86
Azul
#1D5DEC
ΔE00 5.55
Iris
#6258C4
ΔE00 5.62
Denim
#1560BD
ΔE00 6.52
Dark Periwinkle
#665FD1
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4158C2 #C2AB41
analogous
#4198C2 #4158C2 #6A41C2
triadic
#4158C2 #C24158 #58C241
tetradic
#4158C2 #C24198 #C2AB41 #41C26A
square
#4158C2 #C24198 #C2AB41 #41C26A
split-complementary
#4158C2 #C26A41 #98C241
monochromatic
#212E67 #304296 #4158C2 #6F81D1 #9EA9E0
Accessibility & contrast
On white
6.18
#4158C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.40
#4158C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4158C2
6.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4158C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4158C2 | 1.00 | 6.18 | 3.40 | 6.18 |
| #FFFFFF | 6.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0167C6
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#007184
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #4158c2; /* rgb */ color: rgb(65, 88, 194); /* oklch */ color: oklch(50.3% 0.167 270.1);
Tailwind
colors: {
custom: {
50: '#8486d5',
500: '#4158c2',
950: '#000000',
},
}SCSS
$custom: #4158c2; $custom-light: #8486d5; $custom-dark: #000000;
JSON
{
"hex": "#4158c2",
"rgb": {
"r": 65,
"g": 88,
"b": 194
},
"hsl": {
"h": 229.302,
"s": 51.394,
"l": 50.784
},
"oklch": {
"l": 0.50305,
"c": 0.16739,
"h": 270.1
},
"luminance": 0.11998
}Semantic roles & 50–950 ramp
primary
#4158C2
secondary
#CCC293
accent
#C24DDB
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83