#5157CD

#5157cd ≈ Iris

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

#5157cd is a color from the blue family, with medium lightness and moderate saturation. In the RGB model it is made of 31.76% red, 34.12% green and 80.39% blue; printed in CMYK it uses 60.49% cyan, 57.56% magenta, 0% yellow and 19.61% black. Its hue angle is 237.1°, 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 5.84:1 (WCAG AA). The closest named color is Iris (#5a4fcf), ΔE 3.07.

Description generated from the measured properties of this color.

Conversions of #5157cd 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.1297

Readable text 5.84:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.59:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #656565 ≈ 0.003% of males
Achromatomaly #5e609a ≈ 0.001% of males
Protanopia #006ad1 ≈ 1.01% of males
Deuteranopia #0060cb ≈ 1.27% of males
Tritanopia #007389 ≈ 0.0001% of males
Protanomaly #2c63cf ≈ 1.08% of males
Deuteranomaly #235ccc ≈ 4.63% of males
Tritanomaly #2c69a9 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Iris
#5157cd  rgb(81, 87, 205)  hsl(237, 55%, 56%)  Iris
#cdc751  rgb(205, 199, 81)  hsl(57, 55%, 56%)  Straw
#cd5157  rgb(205, 81, 87)  hsl(357, 55%, 56%)  Indian Red
#57cd51  rgb(87, 205, 81)  hsl(117, 55%, 56%)  Lime Green