#4157C6#4157C6
#4157C6 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.4% C 0.174 H 270.5°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).
Color values
| HEX | #4157C6 |
|---|---|
| RGB | rgb(65, 87, 198) |
| HSL | hsl(230, 54%, 52%) |
| HSV | hsv(230, 67%, 78%) |
| CMYK | cmyk(67.2%, 56.1%, 0%, 22.4%) |
| CIE-LAB | lab(41.24, 28.06, -60.50) |
| CIE-LCH | lch(41.24, 66.69, 294.89°) |
| OKLab | oklab(50.42% 0.0014 -0.1741) |
| OKLCH | oklch(50.42% 0.174 270.5) |
| XYZ | xyz(15.7778, 12.0159, 54.9030) |
| Luminance | 0.1202 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.42
Sapphire
#0F52BA
ΔE00 5.12
Azul
#1D5DEC
ΔE00 5.28
Iris
#6258C4
ΔE00 5.39
Dark Periwinkle
#665FD1
ΔE00 6.31
Blue Blue
#2242C7
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4157C6 #C6B041
analogous
#419AC6 #4157C6 #6E41C6
triadic
#4157C6 #C64157 #57C641
tetradic
#4157C6 #C6419A #C6B041 #41C66E
square
#4157C6 #C6419A #C6B041 #41C66E
split-complementary
#4157C6 #C66E41 #9AC641
monochromatic
#202D6C #2F419B #4157C6 #7081D4 #9FAAE2
Accessibility & contrast
On white
6.17
#4157C6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.40
#4157C6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4157C6
6.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4157C6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4157C6 | 1.00 | 6.17 | 3.40 | 6.17 |
| #FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067CA
Deuteranopia (green-blind)
#005BC4
Tritanopia (blue-blind)
#007286
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #4157c6; /* rgb */ color: rgb(65, 87, 198); /* oklch */ color: oklch(50.4% 0.174 270.5);
Tailwind
colors: {
custom: {
50: '#8586d8',
500: '#4157c6',
950: '#000000',
},
}SCSS
$custom: #4157c6; $custom-light: #8586d8; $custom-dark: #000000;
JSON
{
"hex": "#4157c6",
"rgb": {
"r": 65,
"g": 87,
"b": 198
},
"hsl": {
"h": 230.075,
"s": 53.846,
"l": 51.569
},
"oklch": {
"l": 0.5042,
"c": 0.1741,
"h": 270.5
},
"luminance": 0.12017
}Semantic roles & 50–950 ramp
primary
#4157C6
secondary
#CFC594
accent
#C54BDD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B15
muted
#7D7C83