#4158C7#4158C7
#4158C7 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.7% C 0.174 H 270.2°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).
Color values
| HEX | #4158C7 |
|---|---|
| RGB | rgb(65, 88, 199) |
| HSL | hsl(230, 54%, 52%) |
| HSV | hsv(230, 67%, 78%) |
| CMYK | cmyk(67.3%, 55.8%, 0%, 22%) |
| CIE-LAB | lab(41.57, 27.78, -60.54) |
| CIE-LCH | lch(41.57, 66.61, 294.65°) |
| OKLab | oklab(50.69% 0.0006 -0.1742) |
| OKLCH | oklch(50.69% 0.174 270.2) |
| XYZ | xyz(15.9750, 12.2253, 55.5396) |
| Luminance | 0.1223 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.36
Azul
#1D5DEC
ΔE00 5.03
Sapphire
#0F52BA
ΔE00 5.19
Iris
#6258C4
ΔE00 5.45
Dark Periwinkle
#665FD1
ΔE00 6.22
Electric Blue
#0652FF
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4158C7 #C7B041
analogous
#419BC7 #4158C7 #6D41C7
triadic
#4158C7 #C74158 #58C741
tetradic
#4158C7 #C7419B #C7B041 #41C76D
square
#4158C7 #C7419B #C7B041 #41C76D
split-complementary
#4158C7 #C76D41 #9BC741
monochromatic
#202D6D #2E419D #4158C7 #7082D5 #A0ABE3
Accessibility & contrast
On white
6.10
#4158C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.45
#4158C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4158C7
6.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4158C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4158C7 | 1.00 | 6.10 | 3.45 | 6.10 |
| #FFFFFF | 6.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #4158c7; /* rgb */ color: rgb(65, 88, 199); /* oklch */ color: oklch(50.7% 0.174 270.2);
Tailwind
colors: {
custom: {
50: '#8586d9',
500: '#4158c7',
950: '#000000',
},
}SCSS
$custom: #4158c7; $custom-light: #8586d9; $custom-dark: #000000;
JSON
{
"hex": "#4158c7",
"rgb": {
"r": 65,
"g": 88,
"b": 199
},
"hsl": {
"h": 229.701,
"s": 54.472,
"l": 51.765
},
"oklch": {
"l": 0.5069,
"c": 0.1742,
"h": 270.2
},
"luminance": 0.12227
}Semantic roles & 50–950 ramp
primary
#4158C7
secondary
#CFC595
accent
#C44ADE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83