#4157C5#4157C5
#4157C5 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.3% C 0.173 H 270.4°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).
Color values
| HEX | #4157C5 |
|---|---|
| RGB | rgb(65, 87, 197) |
| HSL | hsl(230, 53%, 51%) |
| HSV | hsv(230, 67%, 77%) |
| CMYK | cmyk(67%, 55.8%, 0%, 22.7%) |
| CIE-LAB | lab(41.17, 27.71, -60.03) |
| CIE-LCH | lch(41.17, 66.12, 294.78°) |
| OKLab | oklab(50.34% 0.0013 -0.1727) |
| OKLCH | oklch(50.34% 0.173 270.4) |
| XYZ | xyz(15.6628, 11.9700, 54.2975) |
| Luminance | 0.1197 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.55
Sapphire
#0F52BA
ΔE00 5.05
Azul
#1D5DEC
ΔE00 5.38
Iris
#6258C4
ΔE00 5.42
Dark Periwinkle
#665FD1
ΔE00 6.38
Blue Blue
#2242C7
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4157C5 #C5AF41
analogous
#4199C5 #4157C5 #6D41C5
triadic
#4157C5 #C54157 #57C541
tetradic
#4157C5 #C54199 #C5AF41 #41C56D
square
#4157C5 #C54199 #C5AF41 #41C56D
split-complementary
#4157C5 #C56D41 #99C541
monochromatic
#212D6B #2F419A #4157C5 #7080D3 #9FAAE2
Accessibility & contrast
On white
6.19
#4157C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#4157C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4157C5
6.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4157C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4157C5 | 1.00 | 6.19 | 3.39 | 6.19 |
| #FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067C9
Deuteranopia (green-blind)
#005BC3
Tritanopia (blue-blind)
#007285
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #4157c5; /* rgb */ color: rgb(65, 87, 197); /* oklch */ color: oklch(50.3% 0.173 270.4);
Tailwind
colors: {
custom: {
50: '#8586d7',
500: '#4157c5',
950: '#000000',
},
}SCSS
$custom: #4157c5; $custom-light: #8586d7; $custom-dark: #000000;
JSON
{
"hex": "#4157c5",
"rgb": {
"r": 65,
"g": 87,
"b": 197
},
"hsl": {
"h": 230,
"s": 53.226,
"l": 51.373
},
"oklch": {
"l": 0.50342,
"c": 0.17274,
"h": 270.4
},
"luminance": 0.11971
}Semantic roles & 50–950 ramp
primary
#4157C5
secondary
#CEC494
accent
#C44BDD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83