#4040DF

#4040df ≈ Iris

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

#4040df 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.1% green and 87.45% blue; printed in CMYK it uses 71.3% cyan, 71.3% magenta, 0% yellow and 12.55% black. Its hue angle is 240°, with 71.3% saturation and 56.27% 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.96:1 (WCAG AA). The closest named color is Iris (#5a4fcf), ΔE 4.88.

Description generated from the measured properties of this color.

Conversions of #4040df 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.1008

Readable text 6.96:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.02:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #595959 ≈ 0.003% of males
Achromatomaly #5050a1 ≈ 0.001% of males
Protanopia #0061e4 ≈ 1.01% of males
Deuteranopia #0052dc ≈ 1.27% of males
Tritanopia #006d8b ≈ 0.0001% of males
Protanomaly #0056e2 ≈ 1.08% of males
Deuteranomaly #004bdd ≈ 4.63% of males
Tritanomaly #005eb3 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-4040df {
  color: #4040df;
}
Background
.bg-4040df {
  background-color: #4040df;
  color: #ffffff;
}
Border
.border-4040df {
  border: 2px solid #4040df;
}
CSS variables
:root {
  --color-primary: #4040df;
  --color-primary-rgb: 64 64 223;
  --color-primary-hsl: 240 71% 56%;
}
Gradient
.gradient-4040df {
  background: linear-gradient(135deg, #4040df, #8f40df);
}
Colored shadow
.shadow-4040df {
  box-shadow: 0 8px 24px rgb(64 64 223 / 0.35);
}

Iris
#4040df  rgb(64, 64, 223)  hsl(240, 71%, 56%)  Iris
#dfdf40  rgb(223, 223, 64)  hsl(60, 71%, 56%)  Pear
#df4040  rgb(223, 64, 64)  hsl(0, 71%, 56%)  Cinnabar
#40df40  rgb(64, 223, 64)  hsl(120, 71%, 56%)  Malachite