#4162E2#4162E2
#4162E2 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.7% C 0.198 H 268.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #4162E2 |
|---|---|
| RGB | rgb(65, 98, 226) |
| HSL | hsl(228, 74%, 57%) |
| HSV | hsv(228, 71%, 89%) |
| CMYK | cmyk(71.2%, 56.6%, 0%, 11.4%) |
| CIE-LAB | lab(46.11, 31.03, -68.63) |
| CIE-LCH | lch(46.11, 75.31, 294.33°) |
| OKLab | oklab(54.71% -0.0064 -0.1978) |
| OKLCH | oklch(54.71% 0.198 268.2) |
| XYZ | xyz(20.2704, 15.3481, 73.8310) |
| Luminance | 0.1535 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 2.44
Azul
#1D5DEC
ΔE00 2.59
Bright Blue
#0165FC
ΔE00 3.75
Warm Blue
#4B57DB
ΔE00 4.07
Cornflower Blue
#5170D7
ΔE00 4.86
Electric Blue
#0652FF
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4162E2 #E2C141
analogous
#41B2E2 #4162E2 #7141E2
triadic
#4162E2 #E24162 #62E241
tetradic
#4162E2 #E241B2 #E2C141 #41E271
square
#4162E2 #E241B2 #E2C141 #41E271
split-complementary
#4162E2 #E27141 #B2E241
monochromatic
#163092 #1E41C7 #4162E2 #768EEA #ABBAF2
Accessibility & contrast
On white
5.16
#4162E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#4162E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4162E2
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4162E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4162E2 | 1.00 | 5.16 | 4.07 | 5.16 |
| #FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075E6
Deuteranopia (green-blind)
#0066DF
Tritanopia (blue-blind)
#008298
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #4162e2; /* rgb */ color: rgb(65, 98, 226); /* oklch */ color: oklch(54.7% 0.198 268.2);
Tailwind
colors: {
custom: {
50: '#8a8eec',
500: '#4162e2',
950: '#000000',
},
}SCSS
$custom: #4162e2; $custom-light: #8a8eec; $custom-dark: #000000;
JSON
{
"hex": "#4162e2",
"rgb": {
"r": 65,
"g": 98,
"b": 226
},
"hsl": {
"h": 227.702,
"s": 73.516,
"l": 57.059
},
"oklch": {
"l": 0.54712,
"c": 0.19795,
"h": 268.2
},
"luminance": 0.1535
}Semantic roles & 50–950 ramp
primary
#4162E2
secondary
#E0D39F
accent
#CA38F0
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0D0C16
muted
#7E7D84