#040CAC

#040cac ≈ Zaffre

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

#040cac 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 67.45% blue; printed in CMYK it uses 97.67% cyan, 93.02% magenta, 0% yellow and 32.55% black. Its hue angle is 237.14°, with 95.45% saturation and 34.51% 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 corporate identities. White text on this color reaches a contrast ratio of 12.7:1 (WCAG AAA). The closest named color is Zaffre (#0014a8), ΔE 1.1.

Description generated from the measured properties of this color.

Conversions of #040cac 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.0327

Readable text 12.7:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.65:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #333333 ≈ 0.003% of males
Achromatomaly #272877 ≈ 0.001% of males
Protanopia #003bb0 ≈ 1.01% of males
Deuteranopia #0029aa ≈ 1.27% of males
Tritanopia #004864 ≈ 0.0001% of males
Protanomaly #002eae ≈ 1.08% of males
Deuteranomaly #0021ab ≈ 4.63% of males
Tritanomaly #003887 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Zaffre
#040cac  rgb(4, 12, 172)  hsl(237, 95%, 35%)  Zaffre
#aca404  rgb(172, 164, 4)  hsl(57, 95%, 35%)  Brass
#ac040c  rgb(172, 4, 12)  hsl(357, 95%, 35%)  Rufous
#0cac04  rgb(12, 172, 4)  hsl(117, 95%, 35%)  Kelly Green