#5162E0#5162E0
#5162E0 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.4% C 0.191 H 272.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #5162E0 |
|---|---|
| RGB | rgb(81, 98, 224) |
| HSL | hsl(233, 70%, 60%) |
| HSV | hsv(233, 64%, 88%) |
| CMYK | cmyk(63.8%, 56.3%, 0%, 12.2%) |
| CIE-LAB | lab(46.80, 32.61, -66.34) |
| CIE-LCH | lch(46.80, 73.92, 296.18°) |
| OKLab | oklab(55.41% 0.0091 -0.1908) |
| OKLCH | oklch(55.41% 0.191 272.7) |
| XYZ | xyz(21.2111, 15.8647, 72.4509) |
| Luminance | 0.1587 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 3.56
Warm Blue
#4B57DB
ΔE00 3.57
Dark Periwinkle
#665FD1
ΔE00 4.09
Azul
#1D5DEC
ΔE00 4.27
Cornflower Blue
#5170D7
ΔE00 5.07
Bright Blue
#0165FC
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5162E0 #E0CF51
analogous
#51AAE0 #5162E0 #8751E0
triadic
#5162E0 #E05162 #62E051
tetradic
#5162E0 #E051AA #E0CF51 #51E087
square
#5162E0 #E051AA #E0CF51 #51E087
split-complementary
#5162E0 #E08751 #AAE051
monochromatic
#1C2B9B #2539CF #5162E0 #8591E9 #B9C0F3
Accessibility & contrast
On white
5.03
#5162E0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.17
#5162E0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5162E0
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5162E0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5162E0 | 1.00 | 5.03 | 4.17 | 5.03 |
| #FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075E4
Deuteranopia (green-blind)
#0069DD
Tritanopia (blue-blind)
#008097
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #5162e0; /* rgb */ color: rgb(81, 98, 224); /* oklch */ color: oklch(55.4% 0.191 272.7);
Tailwind
colors: {
custom: {
50: '#908eeb',
500: '#5162e0',
950: '#000000',
},
}SCSS
$custom: #5162e0; $custom-light: #908eeb; $custom-dark: #000000;
JSON
{
"hex": "#5162e0",
"rgb": {
"r": 81,
"g": 98,
"b": 224
},
"hsl": {
"h": 232.867,
"s": 69.756,
"l": 59.804
},
"oklch": {
"l": 0.55406,
"c": 0.19099,
"h": 272.7
},
"luminance": 0.15867
}Semantic roles & 50–950 ramp
primary
#5162E0
secondary
#E2DBAB
accent
#D73BED
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84