#4042EA

#4042ea ≈ Majorelle Blue

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

#4042ea is a color from the blue family, with medium lightness and strong saturation. In the RGB model it is made of 25.1% red, 25.88% green and 91.76% blue; printed in CMYK it uses 72.65% cyan, 71.79% magenta, 0% yellow and 8.24% black. Its hue angle is 239.29°, with 80.19% saturation and 58.43% 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 6.59:1 (WCAG AA). The closest named color is Majorelle Blue (#6050dc), ΔE 4.89.

Description generated from the measured properties of this color.

Conversions of #4042ea into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#3333ff
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.1093

Readable text 6.59:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.19:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #5d5d5d ≈ 0.003% of males
Achromatomaly #5353a9 ≈ 0.001% of males
Protanopia #0065ef ≈ 1.01% of males
Deuteranopia #0055e7 ≈ 1.27% of males
Tritanopia #007292 ≈ 0.0001% of males
Protanomaly #0059ed ≈ 1.08% of males
Deuteranomaly #004ee8 ≈ 4.63% of males
Tritanomaly #0062bc ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-4042ea {
  color: #4042ea;
}
Background
.bg-4042ea {
  background-color: #4042ea;
  color: #ffffff;
}
Border
.border-4042ea {
  border: 2px solid #4042ea;
}
CSS variables
:root {
  --color-primary: #4042ea;
  --color-primary-rgb: 64 66 234;
  --color-primary-hsl: 239 80% 58%;
}
Gradient
.gradient-4042ea {
  background: linear-gradient(135deg, #4042ea, #9340ea);
}
Colored shadow
.shadow-4042ea {
  box-shadow: 0 8px 24px rgb(64 66 234 / 0.35);
}

Majorelle Blue
#4042ea  rgb(64, 66, 234)  hsl(239, 80%, 58%)  Majorelle Blue
#eae840  rgb(234, 232, 64)  hsl(59, 80%, 58%)  Titanium Yellow
#ea4042  rgb(234, 64, 66)  hsl(359, 80%, 58%)  Tractor Red
#42ea40  rgb(66, 234, 64)  hsl(119, 80%, 58%)  Malachite