#5166EA#5166EA
#5166EA is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.9% C 0.199 H 271.7°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).
Color values
| HEX | #5166EA |
|---|---|
| RGB | rgb(81, 102, 234) |
| HSL | hsl(232, 78%, 62%) |
| HSV | hsv(232, 65%, 92%) |
| CMYK | cmyk(65.4%, 56.4%, 0%, 8.2%) |
| CIE-LAB | lab(48.50, 33.52, -69.21) |
| CIE-LCH | lch(48.50, 76.91, 295.84°) |
| OKLab | oklab(56.9% 0.0059 -0.1992) |
| OKLCH | oklch(56.9% 0.199 271.7) |
| XYZ | xyz(22.9910, 17.1905, 79.9324) |
| Luminance | 0.1719 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 3.06
Cornflower Blue
#5170D7
ΔE00 4.31
Bright Blue
#0165FC
ΔE00 4.54
Azul
#1D5DEC
ΔE00 4.82
Warm Blue
#4B57DB
ΔE00 5.26
Dark Periwinkle
#665FD1
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5166EA #EAD551
analogous
#51B2EA #5166EA #8951EA
triadic
#5166EA #EA5166 #66EA51
tetradic
#5166EA #EA51B2 #EAD551 #51EA89
square
#5166EA #EA51B2 #EAD551 #51EA89
split-complementary
#5166EA #EA8951 #B2EA51
monochromatic
#1529AC #1B37E2 #5166EA #8896F1 #BEC6F7
Accessibility & contrast
On white
4.73
#5166EA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.44
#5166EA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5166EA
4.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5166EA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5166EA | 1.00 | 4.73 | 4.44 | 4.73 |
| #FFFFFF | 4.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007AEE
Deuteranopia (green-blind)
#006CE7
Tritanopia (blue-blind)
#00869E
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #5166ea; /* rgb */ color: rgb(81, 102, 234); /* oklch */ color: oklch(56.9% 0.199 271.7);
Tailwind
colors: {
custom: {
50: '#9291f2',
500: '#5166ea',
950: '#000000',
},
}SCSS
$custom: #5166ea; $custom-light: #9291f2; $custom-dark: #000000;
JSON
{
"hex": "#5166ea",
"rgb": {
"r": 81,
"g": 102,
"b": 234
},
"hsl": {
"h": 231.765,
"s": 78.462,
"l": 61.765
},
"oklch": {
"l": 0.56902,
"c": 0.19928,
"h": 271.7
},
"luminance": 0.17193
}Semantic roles & 50–950 ramp
primary
#5166EA
secondary
#E8E0AF
accent
#BE0BDB
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C17
muted
#7E7D85