#040DC2

#040dc2 ≈ Medium Blue

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

#040dc2 is a color from the blue family, with low lightness and strong saturation. In the RGB model it is made of 1.57% red, 5.1% green and 76.08% blue; printed in CMYK it uses 97.94% cyan, 93.3% magenta, 0% yellow and 23.92% black. Its hue angle is 237.16°, with 95.96% saturation and 38.82% 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 11.4:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 1.4.

Description generated from the measured properties of this color.

Conversions of #040dc2 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.0421

Readable text 11.4:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.84:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #3a3a3a ≈ 0.003% of males
Achromatomaly #2d2e87 ≈ 0.001% of males
Protanopia #0043c6 ≈ 1.01% of males
Deuteranopia #002fbf ≈ 1.27% of males
Tritanopia #005172 ≈ 0.0001% of males
Protanomaly #0035c5 ≈ 1.08% of males
Deuteranomaly #0025c0 ≈ 4.63% of males
Tritanomaly #004098 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Medium Blue
#040dc2  rgb(4, 13, 194)  hsl(237, 96%, 39%)  Medium Blue
#c2b904  rgb(194, 185, 4)  hsl(57, 96%, 39%)  Old Gold
#c2040d  rgb(194, 4, 13)  hsl(357, 96%, 39%)  Venetian Red
#0dc204  rgb(13, 194, 4)  hsl(117, 96%, 39%)  Kelly Green