#5170eb ≈ Royal Blue
#5170eb is a color from the blue family, with medium lightness and strong saturation. In the RGB model it is made of 31.76% red, 43.92% green and 92.16% blue; printed in CMYK it uses 65.53% cyan, 52.34% magenta, 0% yellow and 7.84% black. Its hue angle is 227.92°, with 79.38% saturation and 61.96% lightness in HSL. It is a cool color, often associated with trust, stability and focus. Designers typically use it for technology products, finance and banking and brand accents. Black text on this color reaches a contrast ratio of 4.87:1 (WCAG AA). The closest named color is Royal Blue (#4169e1), ΔE 3.33.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #6666ff |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.1934 |
Shades
#5170eb mixed progressively with black.
Tints
#5170eb mixed progressively with white.
Tones
#5170eb mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-5170eb {
color: #5170eb;
}
.bg-5170eb {
background-color: #5170eb;
color: #000000;
}
.border-5170eb {
border: 2px solid #5170eb;
}
:root {
--color-primary: #5170eb;
--color-primary-rgb: 81 112 235;
--color-primary-hsl: 228 79% 62%;
}
.gradient-5170eb {
background: linear-gradient(135deg, #5170eb, #7f51eb);
}
.shadow-5170eb {
box-shadow: 0 8px 24px rgb(81 112 235 / 0.35);
}
Royal Blue
#5170eb rgb(81, 112, 235) hsl(228, 79%, 62%) Royal Blue
#ebcc51 rgb(235, 204, 81) hsl(48, 79%, 62%) Naples Yellow
#eb5170 rgb(235, 81, 112) hsl(348, 79%, 62%) Neon Fuchsia
#70eb51 rgb(112, 235, 81) hsl(108, 79%, 62%) Neon Green