#040DCA

#040dca ≈ Medium Blue

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

#040dca 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.1% green and 79.22% blue; printed in CMYK it uses 98.02% cyan, 93.56% magenta, 0% yellow and 20.78% black. Its hue angle is 237.27°, with 96.12% saturation and 40.39% 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.96:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 0.91.

Description generated from the measured properties of this color.

Conversions of #040dca 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.0458

Readable text 10.96:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.92:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #3c3c3c ≈ 0.003% of males
Achromatomaly #2f308c ≈ 0.001% of males
Protanopia #0046cf ≈ 1.01% of males
Deuteranopia #0031c7 ≈ 1.27% of males
Tritanopia #005576 ≈ 0.0001% of males
Protanomaly #0037cd ≈ 1.08% of males
Deuteranomaly #0027c8 ≈ 4.63% of males
Tritanomaly #00439f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Medium Blue
#040dca  rgb(4, 13, 202)  hsl(237, 96%, 40%)  Medium Blue
#cac104  rgb(202, 193, 4)  hsl(57, 96%, 40%)  Citrine
#ca040d  rgb(202, 4, 13)  hsl(357, 96%, 40%)  Venetian Red
#0dca04  rgb(13, 202, 4)  hsl(117, 96%, 40%)  Lime Green