#5A5FF2

#5a5ff2 ≈ Ultramarine Blue

  • blue
  • Lightness: high
  • Saturation: strong
  • Cool

#5a5ff2 is a color from the blue family, with high lightness and strong saturation. In the RGB model it is made of 35.29% red, 37.25% green and 94.9% blue; printed in CMYK it uses 62.81% cyan, 60.74% magenta, 0% yellow and 5.1% black. Its hue angle is 238.03°, with 85.39% saturation and 65.1% 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 call-to-action buttons. White text on this color reaches a contrast ratio of 4.82:1 (WCAG AA). The closest named color is Ultramarine Blue (#4166f5), ΔE 3.91.

Description generated from the measured properties of this color.

Conversions of #5a5ff2 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.1677

Readable text 4.82:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.35:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #727272 ≈ 0.003% of males
Achromatomaly #696bb4 ≈ 0.001% of males
Protanopia #0079f7 ≈ 1.01% of males
Deuteranopia #006bef ≈ 1.27% of males
Tritanopia #0084a0 ≈ 0.0001% of males
Protanomaly #1f6ff5 ≈ 1.08% of males
Deuteranomaly #0467f0 ≈ 4.63% of males
Tritanomaly #2477c6 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5a5ff2 {
  color: #5a5ff2;
}
Background
.bg-5a5ff2 {
  background-color: #5a5ff2;
  color: #ffffff;
}
Border
.border-5a5ff2 {
  border: 2px solid #5a5ff2;
}
CSS variables
:root {
  --color-primary: #5a5ff2;
  --color-primary-rgb: 90 95 242;
  --color-primary-hsl: 238 85% 65%;
}
Gradient
.gradient-5a5ff2 {
  background: linear-gradient(135deg, #5a5ff2, #a15af2);
}
Colored shadow
.shadow-5a5ff2 {
  box-shadow: 0 8px 24px rgb(90 95 242 / 0.35);
}

Ultramarine Blue
#5a5ff2  rgb(90, 95, 242)  hsl(238, 85%, 65%)  Ultramarine Blue
#f2ed5a  rgb(242, 237, 90)  hsl(58, 85%, 65%)  Icterine
#f25a5f  rgb(242, 90, 95)  hsl(358, 85%, 65%)  Pastel Red
#5ff25a  rgb(95, 242, 90)  hsl(118, 85%, 65%)  Neon Green