#5166E1#5166E1
#5166E1 is a mid, vivid blue. Relative luminance 0.167; OKLCH L 56.2% C 0.187 H 271.7°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #5166E1 |
|---|---|
| RGB | rgb(81, 102, 225) |
| HSL | hsl(231, 71%, 60%) |
| HSV | hsv(231, 64%, 88%) |
| CMYK | cmyk(64%, 54.7%, 0%, 11.8%) |
| CIE-LAB | lab(47.86, 30.47, -65.17) |
| CIE-LCH | lch(47.86, 71.94, 295.06°) |
| OKLab | oklab(56.23% 0.0056 -0.1873) |
| OKLCH | oklch(56.23% 0.187 271.7) |
| XYZ | xyz(21.7308, 16.6864, 73.2952) |
| Luminance | 0.1669 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 2.59
Cornflower Blue
#5170D7
ΔE00 3.81
Azul
#1D5DEC
ΔE00 4.64
Bright Blue
#0165FC
ΔE00 4.80
Dark Periwinkle
#665FD1
ΔE00 4.88
Warm Blue
#4B57DB
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5166E1 #E1CC51
analogous
#51AEE1 #5166E1 #8451E1
triadic
#5166E1 #E15166 #66E151
tetradic
#5166E1 #E151AE #E1CC51 #51E184
square
#5166E1 #E151AE #E1CC51 #51E184
split-complementary
#5166E1 #E18451 #AEE151
monochromatic
#1B2E9D #243DD1 #5166E1 #8594EA #B9C2F3
Accessibility & contrast
On white
4.84
#5166E1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.34
#5166E1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5166E1
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5166E1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5166E1 | 1.00 | 4.84 | 4.34 | 4.84 |
| #FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078E5
Deuteranopia (green-blind)
#006BDF
Tritanopia (blue-blind)
#00839A
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #5166e1; /* rgb */ color: rgb(81, 102, 225); /* oklch */ color: oklch(56.2% 0.187 271.7);
Tailwind
colors: {
custom: {
50: '#9091eb',
500: '#5166e1',
950: '#000000',
},
}SCSS
$custom: #5166e1; $custom-light: #9091eb; $custom-dark: #000000;
JSON
{
"hex": "#5166e1",
"rgb": {
"r": 81,
"g": 102,
"b": 225
},
"hsl": {
"h": 231.25,
"s": 70.588,
"l": 60
},
"oklch": {
"l": 0.56225,
"c": 0.18738,
"h": 271.7
},
"luminance": 0.16688
}Semantic roles & 50–950 ramp
primary
#5166E1
secondary
#E3DBAB
accent
#D33AED
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84