#5162E1#5162E1
#5162E1 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.5% C 0.192 H 272.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #5162E1 |
|---|---|
| RGB | rgb(81, 98, 225) |
| HSL | hsl(233, 71%, 60%) |
| HSV | hsv(233, 64%, 88%) |
| CMYK | cmyk(64%, 56.4%, 0%, 11.8%) |
| CIE-LAB | lab(46.87, 32.94, -66.79) |
| CIE-LCH | lch(46.87, 74.47, 296.26°) |
| OKLab | oklab(55.48% 0.0091 -0.1921) |
| OKLCH | oklch(55.48% 0.192 272.7) |
| XYZ | xyz(21.3471, 15.9191, 73.1673) |
| Luminance | 0.1592 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 3.57
Warm Blue
#4B57DB
ΔE00 3.60
Dark Periwinkle
#665FD1
ΔE00 4.13
Azul
#1D5DEC
ΔE00 4.27
Cornflower Blue
#5170D7
ΔE00 5.10
Bright Blue
#0165FC
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5162E1 #E1D051
analogous
#51AAE1 #5162E1 #8851E1
triadic
#5162E1 #E15162 #62E151
tetradic
#5162E1 #E151AA #E1D051 #51E188
square
#5162E1 #E151AA #E1D051 #51E188
split-complementary
#5162E1 #E18851 #AAE151
monochromatic
#1B2A9D #2438D1 #5162E1 #8591EA #B9C0F3
Accessibility & contrast
On white
5.02
#5162E1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#5162E1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5162E1
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5162E1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5162E1 | 1.00 | 5.02 | 4.18 | 5.02 |
| #FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076E5
Deuteranopia (green-blind)
#0069DE
Tritanopia (blue-blind)
#008198
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #5162e1; /* rgb */ color: rgb(81, 98, 225); /* oklch */ color: oklch(55.5% 0.192 272.7);
Tailwind
colors: {
custom: {
50: '#908eeb',
500: '#5162e1',
950: '#000000',
},
}SCSS
$custom: #5162e1; $custom-light: #908eeb; $custom-dark: #000000;
JSON
{
"hex": "#5162e1",
"rgb": {
"r": 81,
"g": 98,
"b": 225
},
"hsl": {
"h": 232.917,
"s": 70.588,
"l": 60
},
"oklch": {
"l": 0.55482,
"c": 0.1923,
"h": 272.7
},
"luminance": 0.15921
}Semantic roles & 50–950 ramp
primary
#5162E1
secondary
#E3DCAB
accent
#D83AED
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84