#4157C7#4157C7
#4157C7 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.5% C 0.175 H 270.5°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).
Color values
| HEX | #4157C7 |
|---|---|
| RGB | rgb(65, 87, 199) |
| HSL | hsl(230, 54%, 52%) |
| HSV | hsv(230, 67%, 78%) |
| CMYK | cmyk(67.3%, 56.3%, 0%, 22%) |
| CIE-LAB | lab(41.31, 28.42, -60.96) |
| CIE-LCH | lch(41.31, 67.25, 294.99°) |
| OKLab | oklab(50.5% 0.0014 -0.1754) |
| OKLCH | oklch(50.5% 0.175 270.5) |
| XYZ | xyz(15.8935, 12.0622, 55.5124) |
| Luminance | 0.1206 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.29
Azul
#1D5DEC
ΔE00 5.19
Sapphire
#0F52BA
ΔE00 5.19
Iris
#6258C4
ΔE00 5.36
Dark Periwinkle
#665FD1
ΔE00 6.25
Blue Blue
#2242C7
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4157C7 #C7B141
analogous
#419AC7 #4157C7 #6E41C7
triadic
#4157C7 #C74157 #57C741
tetradic
#4157C7 #C7419A #C7B141 #41C76E
square
#4157C7 #C7419A #C7B141 #41C76E
split-complementary
#4157C7 #C76E41 #9AC741
monochromatic
#202D6D #2E409D #4157C7 #7081D5 #A0ABE3
Accessibility & contrast
On white
6.15
#4157C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.41
#4157C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4157C7
6.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4157C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4157C7 | 1.00 | 6.15 | 3.41 | 6.15 |
| #FFFFFF | 6.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#007286
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #4157c7; /* rgb */ color: rgb(65, 87, 199); /* oklch */ color: oklch(50.5% 0.175 270.5);
Tailwind
colors: {
custom: {
50: '#8586d9',
500: '#4157c7',
950: '#000000',
},
}SCSS
$custom: #4157c7; $custom-light: #8586d9; $custom-dark: #000000;
JSON
{
"hex": "#4157c7",
"rgb": {
"r": 65,
"g": 87,
"b": 199
},
"hsl": {
"h": 230.149,
"s": 54.472,
"l": 51.765
},
"oklch": {
"l": 0.50498,
"c": 0.17545,
"h": 270.5
},
"luminance": 0.12064
}Semantic roles & 50–950 ramp
primary
#4157C7
secondary
#CFC695
accent
#C64ADE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83