#5151CC

#5151cc ≈ Iris

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

#5151cc is a color from the blue family, with medium lightness and moderate saturation. In the RGB model it is made of 31.76% red, 31.76% green and 80% blue; printed in CMYK it uses 60.29% cyan, 60.29% magenta, 0% yellow and 20% black. Its hue angle is 240°, with 54.67% saturation and 55.88% 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 6.18:1 (WCAG AA). The closest named color is Iris (#5a4fcf), ΔE 1.69.

Description generated from the measured properties of this color.

Conversions of #5151cc 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.1199

Readable text 6.18:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.4:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #616161 ≈ 0.003% of males
Achromatomaly #5b5b98 ≈ 0.001% of males
Protanopia #0066d0 ≈ 1.01% of males
Deuteranopia #005cca ≈ 1.27% of males
Tritanopia #006f87 ≈ 0.0001% of males
Protanomaly #255fce ≈ 1.08% of males
Deuteranomaly #1b58cb ≈ 4.63% of males
Tritanomaly #2d64a7 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Iris
#5151cc  rgb(81, 81, 204)  hsl(240, 55%, 56%)  Iris
#cccc51  rgb(204, 204, 81)  hsl(60, 55%, 56%)  Straw
#cc5151  rgb(204, 81, 81)  hsl(0, 55%, 56%)  Indian Red
#51cc51  rgb(81, 204, 81)  hsl(120, 55%, 56%)  Lime Green