#5170CD

#5170cd ≈ Royal Blue

  • blue
  • Lightness: medium
  • Saturation: moderate
  • Cool

#5170cd is a color from the blue family, with medium lightness and moderate saturation. In the RGB model it is made of 31.76% red, 43.92% green and 80.39% blue; printed in CMYK it uses 60.49% cyan, 45.37% magenta, 0% yellow and 19.61% black. Its hue angle is 225°, with 55.36% saturation and 56.08% 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. White text on this color reaches a contrast ratio of 4.62:1 (WCAG AA). The closest named color is Royal Blue (#4169e1), ΔE 3.4.

Description generated from the measured properties of this color.

Conversions of #5170cd into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#6666cc
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.1775

Readable text 4.62:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.55:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #757575 ≈ 0.003% of males
Achromatomaly #6873a0 ≈ 0.001% of males
Protanopia #447bd0 ≈ 1.01% of males
Deuteranopia #3170cb ≈ 1.27% of males
Tritanopia #008594 ≈ 0.0001% of males
Protanomaly #4a77cf ≈ 1.08% of males
Deuteranomaly #4070cc ≈ 4.63% of males
Tritanomaly #297dae ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5170cd {
  color: #5170cd;
}
Background
.bg-5170cd {
  background-color: #5170cd;
  color: #ffffff;
}
Border
.border-5170cd {
  border: 2px solid #5170cd;
}
CSS variables
:root {
  --color-primary: #5170cd;
  --color-primary-rgb: 81 112 205;
  --color-primary-hsl: 225 55% 56%;
}
Gradient
.gradient-5170cd {
  background: linear-gradient(135deg, #5170cd, #7051cd);
}
Colored shadow
.shadow-5170cd {
  box-shadow: 0 8px 24px rgb(81 112 205 / 0.35);
}

Royal Blue
#5170cd  rgb(81, 112, 205)  hsl(225, 55%, 56%)  Royal Blue
#cdae51  rgb(205, 174, 81)  hsl(45, 55%, 56%)  Metallic Gold
#cd5170  rgb(205, 81, 112)  hsl(345, 55%, 56%)  Cerise
#70cd51  rgb(112, 205, 81)  hsl(105, 55%, 56%)  Mantis