#4042E4

#4042e4 ≈ Iris

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

#4042e4 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 89.41% blue; printed in CMYK it uses 71.93% cyan, 71.05% magenta, 0% yellow and 10.59% black. Its hue angle is 239.27°, with 75.23% saturation and 57.25% 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.74:1 (WCAG AA). The closest named color is Iris (#5a4fcf), ΔE 4.68.

Description generated from the measured properties of this color.

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

Readable text 6.74:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.12:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #5c5c5c ≈ 0.003% of males
Achromatomaly #5252a5 ≈ 0.001% of males
Protanopia #0063e9 ≈ 1.01% of males
Deuteranopia #0054e1 ≈ 1.27% of males
Tritanopia #00708f ≈ 0.0001% of males
Protanomaly #0058e7 ≈ 1.08% of males
Deuteranomaly #004de2 ≈ 4.63% of males
Tritanomaly #0061b7 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Iris
#4042e4  rgb(64, 66, 228)  hsl(239, 75%, 57%)  Iris
#e4e240  rgb(228, 226, 64)  hsl(59, 75%, 57%)  Dandelion
#e44042  rgb(228, 64, 66)  hsl(359, 75%, 57%)  Cinnabar
#42e440  rgb(66, 228, 64)  hsl(119, 75%, 57%)  Malachite