#040ECF

#040ecf ≈ Medium Blue

  • blue
  • Lightness: medium
  • Saturation: vivid
  • Cool

#040ecf is a color from the blue family, with medium lightness and vivid saturation. In the RGB model it is made of 1.57% red, 5.49% green and 81.18% blue; printed in CMYK it uses 98.07% cyan, 93.24% magenta, 0% yellow and 18.82% black. Its hue angle is 237.04°, with 96.21% saturation and 41.37% 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 10.67:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 1.18.

Description generated from the measured properties of this color.

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

Readable text 10.67:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.97:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #3e3e3e ≈ 0.003% of males
Achromatomaly #303190 ≈ 0.001% of males
Protanopia #0048d4 ≈ 1.01% of males
Deuteranopia #0033cc ≈ 1.27% of males
Tritanopia #005779 ≈ 0.0001% of males
Protanomaly #0039d2 ≈ 1.08% of males
Deuteranomaly #0028cd ≈ 4.63% of males
Tritanomaly #0045a3 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040ecf {
  color: #040ecf;
}
Background
.bg-040ecf {
  background-color: #040ecf;
  color: #ffffff;
}
Border
.border-040ecf {
  border: 2px solid #040ecf;
}
CSS variables
:root {
  --color-primary: #040ecf;
  --color-primary-rgb: 4 14 207;
  --color-primary-hsl: 237 96% 41%;
}
Gradient
.gradient-040ecf {
  background: linear-gradient(135deg, #040ecf, #5f04cf);
}
Colored shadow
.shadow-040ecf {
  box-shadow: 0 8px 24px rgb(4 14 207 / 0.35);
}

Medium Blue
#040ecf  rgb(4, 14, 207)  hsl(237, 96%, 41%)  Medium Blue
#cfc504  rgb(207, 197, 4)  hsl(57, 96%, 41%)  Citrine
#cf040e  rgb(207, 4, 14)  hsl(357, 96%, 41%)  Venetian Red
#0ecf04  rgb(14, 207, 4)  hsl(117, 96%, 41%)  Lime Green