#5162CF

#5162cf ≈ Royal Blue

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

#5162cf is a color from the blue family, with medium lightness and moderate saturation. In the RGB model it is made of 31.76% red, 38.43% green and 81.18% blue; printed in CMYK it uses 60.87% cyan, 52.66% magenta, 0% yellow and 18.82% black. Its hue angle is 231.9°, with 56.76% saturation and 56.47% 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 5.25:1 (WCAG AA). The closest named color is Royal Blue (#4169e1), ΔE 4.01.

Description generated from the measured properties of this color.

Conversions of #5162cf 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.1499

Readable text 5.25:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #6c6c6c ≈ 0.003% of males
Achromatomaly #62689d ≈ 0.001% of males
Protanopia #1e72d3 ≈ 1.01% of males
Deuteranopia #0067cd ≈ 1.27% of males
Tritanopia #007b8f ≈ 0.0001% of males
Protanomaly #396cd1 ≈ 1.08% of males
Deuteranomaly #2f65ce ≈ 4.63% of males
Tritanomaly #2972ac ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5162cf {
  color: #5162cf;
}
Background
.bg-5162cf {
  background-color: #5162cf;
  color: #ffffff;
}
Border
.border-5162cf {
  border: 2px solid #5162cf;
}
CSS variables
:root {
  --color-primary: #5162cf;
  --color-primary-rgb: 81 98 207;
  --color-primary-hsl: 232 57% 56%;
}
Gradient
.gradient-5162cf {
  background: linear-gradient(135deg, #5162cf, #7f51cf);
}
Colored shadow
.shadow-5162cf {
  box-shadow: 0 8px 24px rgb(81 98 207 / 0.35);
}

Royal Blue
#5162cf  rgb(81, 98, 207)  hsl(232, 57%, 56%)  Royal Blue
#cfbe51  rgb(207, 190, 81)  hsl(52, 57%, 56%)  Old Gold
#cf5162  rgb(207, 81, 98)  hsl(352, 57%, 56%)  Brick Red
#62cf51  rgb(98, 207, 81)  hsl(112, 57%, 56%)  Lime Green