#4157CA#4157CA
#4157CA is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.7% C 0.179 H 270.5°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).
Color values
| HEX | #4157CA |
|---|---|
| RGB | rgb(65, 87, 202) |
| HSL | hsl(230, 56%, 52%) |
| HSV | hsv(230, 68%, 79%) |
| CMYK | cmyk(67.8%, 56.9%, 0%, 20.8%) |
| CIE-LAB | lab(41.54, 29.48, -62.33) |
| CIE-LCH | lch(41.54, 68.95, 295.31°) |
| OKLab | oklab(50.73% 0.0015 -0.1795) |
| OKLCH | oklch(50.73% 0.18 270.5) |
| XYZ | xyz(16.2452, 12.2029, 57.3649) |
| Luminance | 0.1220 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.91
Azul
#1D5DEC
ΔE00 4.90
Iris
#6258C4
ΔE00 5.30
Sapphire
#0F52BA
ΔE00 5.42
Dark Periwinkle
#665FD1
ΔE00 6.08
Electric Blue
#0652FF
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4157CA #CAB441
analogous
#419CCA #4157CA #7041CA
triadic
#4157CA #CA4157 #57CA41
tetradic
#4157CA #CA419C #CAB441 #41CA70
square
#4157CA #CA419C #CAB441 #41CA70
split-complementary
#4157CA #CA7041 #9CCA41
monochromatic
#202D71 #2D40A1 #4157CA #7181D7 #A1ACE5
Accessibility & contrast
On white
6.10
#4157CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.44
#4157CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4157CA
6.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4157CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4157CA | 1.00 | 6.10 | 3.44 | 6.10 |
| #FFFFFF | 6.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#007388
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #4157ca; /* rgb */ color: rgb(65, 87, 202); /* oklch */ color: oklch(50.7% 0.179 270.5);
Tailwind
colors: {
custom: {
50: '#8686db',
500: '#4157ca',
950: '#000000',
},
}SCSS
$custom: #4157ca; $custom-light: #8686db; $custom-dark: #000000;
JSON
{
"hex": "#4157ca",
"rgb": {
"r": 65,
"g": 87,
"b": 202
},
"hsl": {
"h": 230.365,
"s": 56.379,
"l": 52.353
},
"oklch": {
"l": 0.50734,
"c": 0.1795,
"h": 270.5
},
"luminance": 0.12204
}Semantic roles & 50–950 ramp
primary
#4157CA
secondary
#D1C896
accent
#C748E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83