#5157EA

#5157ea ≈ Majorelle Blue

  • blue
  • Lightness: medium
  • Saturation: strong
  • Cool

#5157ea is a color from the blue family, with medium lightness and strong saturation. In the RGB model it is made of 31.76% red, 34.12% green and 91.76% blue; printed in CMYK it uses 65.38% cyan, 62.82% magenta, 0% yellow and 8.24% black. Its hue angle is 237.65°, with 78.46% saturation and 61.76% 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.38:1 (WCAG AA). The closest named color is Majorelle Blue (#6050dc), ΔE 3.45.

Description generated from the measured properties of this color.

Conversions of #5157ea 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.1451

Readable text 5.38:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.9:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #6a6a6a ≈ 0.003% of males
Achromatomaly #6163ad ≈ 0.001% of males
Protanopia #0071ef ≈ 1.01% of males
Deuteranopia #0064e7 ≈ 1.27% of males
Tritanopia #007d99 ≈ 0.0001% of males
Protanomaly #0068ed ≈ 1.08% of males
Deuteranomaly #005fe8 ≈ 4.63% of males
Tritanomaly #076fbf ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5157ea {
  color: #5157ea;
}
Background
.bg-5157ea {
  background-color: #5157ea;
  color: #ffffff;
}
Border
.border-5157ea {
  border: 2px solid #5157ea;
}
CSS variables
:root {
  --color-primary: #5157ea;
  --color-primary-rgb: 81 87 234;
  --color-primary-hsl: 238 78% 62%;
}
Gradient
.gradient-5157ea {
  background: linear-gradient(135deg, #5157ea, #9751ea);
}
Colored shadow
.shadow-5157ea {
  box-shadow: 0 8px 24px rgb(81 87 234 / 0.35);
}

Majorelle Blue
#5157ea  rgb(81, 87, 234)  hsl(238, 78%, 62%)  Majorelle Blue
#eae451  rgb(234, 228, 81)  hsl(58, 78%, 62%)  Dandelion
#ea5157  rgb(234, 81, 87)  hsl(358, 78%, 62%)  Indian Red
#57ea51  rgb(87, 234, 81)  hsl(118, 78%, 62%)  Malachite