#040C8A

#040c8a ≈ Phthalo Blue

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

#040c8a 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 54.12% blue; printed in CMYK it uses 97.1% cyan, 91.3% magenta, 0% yellow and 45.88% black. Its hue angle is 236.42°, with 94.37% saturation and 27.84% 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 luxury branding. White text on this color reaches a contrast ratio of 14.74:1 (WCAG AAA). The closest named color is Phthalo Blue (#000f89), ΔE 0.54.

Description generated from the measured properties of this color.

Conversions of #040c8a 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.0212

Readable text 14.74:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.42:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #282828 ≈ 0.003% of males
Achromatomaly #1e205f ≈ 0.001% of males
Protanopia #002f8d ≈ 1.01% of males
Deuteranopia #002188 ≈ 1.27% of males
Tritanopia #003950 ≈ 0.0001% of males
Protanomaly #00258c ≈ 1.08% of males
Deuteranomaly #001a89 ≈ 4.63% of males
Tritanomaly #002d6c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040c8a {
  color: #040c8a;
}
Background
.bg-040c8a {
  background-color: #040c8a;
  color: #ffffff;
}
Border
.border-040c8a {
  border: 2px solid #040c8a;
}
CSS variables
:root {
  --color-primary: #040c8a;
  --color-primary-rgb: 4 12 138;
  --color-primary-hsl: 236 94% 28%;
}
Gradient
.gradient-040c8a {
  background: linear-gradient(135deg, #040c8a, #3f048a);
}
Colored shadow
.shadow-040c8a {
  box-shadow: 0 8px 24px rgb(4 12 138 / 0.35);
}

Phthalo Blue
#040c8a  rgb(4, 12, 138)  hsl(236, 94%, 28%)  Phthalo Blue
#8a8204  rgb(138, 130, 4)  hsl(56, 94%, 28%)  Olive
#8a040c  rgb(138, 4, 12)  hsl(356, 94%, 28%)  Sangria
#0c8a04  rgb(12, 138, 4)  hsl(116, 94%, 28%)  India Green