#4157CF#4157CF
#4157CF is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.1% C 0.186 H 270.5°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).
Color values
| HEX | #4157CF |
|---|---|
| RGB | rgb(65, 87, 207) |
| HSL | hsl(231, 60%, 53%) |
| HSV | hsv(231, 69%, 81%) |
| CMYK | cmyk(68.6%, 58%, 0%, 18.8%) |
| CIE-LAB | lab(41.91, 31.24, -64.60) |
| CIE-LCH | lch(41.91, 71.76, 295.81°) |
| OKLab | oklab(51.13% 0.0016 -0.1862) |
| OKLCH | oklch(51.13% 0.186 270.5) |
| XYZ | xyz(16.8468, 12.4436, 60.5334) |
| Luminance | 0.1245 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.31
Azul
#1D5DEC
ΔE00 4.46
Iris
#6258C4
ΔE00 5.27
Electric Blue
#0652FF
ΔE00 5.56
Dark Periwinkle
#665FD1
ΔE00 5.85
Sapphire
#0F52BA
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4157CF #CFB941
analogous
#419ECF #4157CF #7241CF
triadic
#4157CF #CF4157 #57CF41
tetradic
#4157CF #CF419E #CFB941 #41CF72
square
#4157CF #CF419E #CFB941 #41CF72
split-complementary
#4157CF #CF7241 #9ECF41
monochromatic
#1E2C77 #2B3EA8 #4157CF #7282DB #A3ADE8
Accessibility & contrast
On white
6.02
#4157CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#4157CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4157CF
6.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4157CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4157CF | 1.00 | 6.02 | 3.49 | 6.02 |
| #FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#005DCD
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #4157cf; /* rgb */ color: rgb(65, 87, 207); /* oklch */ color: oklch(51.1% 0.186 270.5);
Tailwind
colors: {
custom: {
50: '#8786df',
500: '#4157cf',
950: '#000000',
},
}SCSS
$custom: #4157cf; $custom-light: #8786df; $custom-dark: #000000;
JSON
{
"hex": "#4157cf",
"rgb": {
"r": 65,
"g": 87,
"b": 207
},
"hsl": {
"h": 230.704,
"s": 59.664,
"l": 53.333
},
"oklch": {
"l": 0.51132,
"c": 0.18618,
"h": 270.5
},
"luminance": 0.12445
}Semantic roles & 50–950 ramp
primary
#4157CF
secondary
#D4CB97
accent
#CA45E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83