#5170EB

#5170eb ≈ Royal Blue

  • blue
  • Lightness: medium
  • Saturation: strong
  • Cool

#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.

Conversions of #5170eb into other color spaces
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 luminance0.1934

Readable text 4.31:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 4.87:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #7a7a7a ≈ 0.003% of males
Achromatomaly #6c76b3 ≈ 0.001% of males
Protanopia #1e81ef ≈ 1.01% of males
Deuteranopia #0073e9 ≈ 1.27% of males
Tritanopia #008da3 ≈ 0.0001% of males
Protanomaly #397bee ≈ 1.08% of males
Deuteranomaly #2872ea ≈ 4.63% of males
Tritanomaly #0082c4 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5170eb {
  color: #5170eb;
}
Background
.bg-5170eb {
  background-color: #5170eb;
  color: #000000;
}
Border
.border-5170eb {
  border: 2px solid #5170eb;
}
CSS variables
:root {
  --color-primary: #5170eb;
  --color-primary-rgb: 81 112 235;
  --color-primary-hsl: 228 79% 62%;
}
Gradient
.gradient-5170eb {
  background: linear-gradient(135deg, #5170eb, #7f51eb);
}
Colored shadow
.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