#040CAF

#040caf ≈ Zaffre

  • blue
  • Lightness: low
  • Saturation: strong
  • Cool

#040caf is a color from the blue family, with low lightness and strong saturation. In the RGB model it is made of 1.57% red, 4.71% green and 68.63% blue; printed in CMYK it uses 97.71% cyan, 93.14% magenta, 0% yellow and 31.37% black. Its hue angle is 237.19°, with 95.53% saturation and 35.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 12.52:1 (WCAG AAA). The closest named color is Zaffre (#0014a8), ΔE 1.28.

Description generated from the measured properties of this color.

Conversions of #040caf into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#000099
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0338

Readable text 12.52:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.68:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #343434 ≈ 0.003% of males
Achromatomaly #282979 ≈ 0.001% of males
Protanopia #003cb3 ≈ 1.01% of males
Deuteranopia #002aad ≈ 1.27% of males
Tritanopia #004966 ≈ 0.0001% of males
Protanomaly #002fb1 ≈ 1.08% of males
Deuteranomaly #0021ae ≈ 4.63% of males
Tritanomaly #003989 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040caf {
  color: #040caf;
}
Background
.bg-040caf {
  background-color: #040caf;
  color: #ffffff;
}
Border
.border-040caf {
  border: 2px solid #040caf;
}
CSS variables
:root {
  --color-primary: #040caf;
  --color-primary-rgb: 4 12 175;
  --color-primary-hsl: 237 96% 35%;
}
Gradient
.gradient-040caf {
  background: linear-gradient(135deg, #040caf, #5104af);
}
Colored shadow
.shadow-040caf {
  box-shadow: 0 8px 24px rgb(4 12 175 / 0.35);
}

Zaffre
#040caf  rgb(4, 12, 175)  hsl(237, 96%, 35%)  Zaffre
#afa704  rgb(175, 167, 4)  hsl(57, 96%, 35%)  Brass
#af040c  rgb(175, 4, 12)  hsl(357, 96%, 35%)  Cornell Red
#0caf04  rgb(12, 175, 4)  hsl(117, 96%, 35%)  Kelly Green