#4158CF#4158CF
#4158CF is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.3% C 0.185 H 270.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).
Color values
| HEX | #4158CF |
|---|---|
| RGB | rgb(65, 88, 207) |
| HSL | hsl(230, 60%, 53%) |
| HSV | hsv(230, 69%, 81%) |
| CMYK | cmyk(68.6%, 57.5%, 0%, 18.8%) |
| CIE-LAB | lab(42.16, 30.61, -64.19) |
| CIE-LCH | lch(42.16, 71.12, 295.49°) |
| OKLab | oklab(51.32% 0.0008 -0.1849) |
| OKLCH | oklch(51.32% 0.185 270.2) |
| XYZ | xyz(16.9283, 12.6066, 60.5606) |
| Luminance | 0.1261 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.39
Azul
#1D5DEC
ΔE00 4.28
Iris
#6258C4
ΔE00 5.35
Electric Blue
#0652FF
ΔE00 5.61
Dark Periwinkle
#665FD1
ΔE00 5.80
Sapphire
#0F52BA
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4158CF #CFB841
analogous
#419FCF #4158CF #7141CF
triadic
#4158CF #CF4158 #58CF41
tetradic
#4158CF #CF419F #CFB841 #41CF71
square
#4158CF #CF419F #CFB841 #41CF71
split-complementary
#4158CF #CF7141 #9FCF41
monochromatic
#1E2D77 #2B3FA8 #4158CF #7283DB #A3AEE8
Accessibility & contrast
On white
5.96
#4158CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#4158CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4158CF
5.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4158CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4158CF | 1.00 | 5.96 | 3.52 | 5.96 |
| #FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#005DCD
Tritanopia (blue-blind)
#00758B
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #4158cf; /* rgb */ color: rgb(65, 88, 207); /* oklch */ color: oklch(51.3% 0.185 270.2);
Tailwind
colors: {
custom: {
50: '#8686df',
500: '#4158cf',
950: '#000000',
},
}SCSS
$custom: #4158cf; $custom-light: #8686df; $custom-dark: #000000;
JSON
{
"hex": "#4158cf",
"rgb": {
"r": 65,
"g": 88,
"b": 207
},
"hsl": {
"h": 230.282,
"s": 59.664,
"l": 53.333
},
"oklch": {
"l": 0.5132,
"c": 0.18495,
"h": 270.2
},
"luminance": 0.12608
}Semantic roles & 50–950 ramp
primary
#4158CF
secondary
#D4CB97
accent
#C945E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83