#040CD0

#040cd0 ≈ Medium Blue

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

#040cd0 is a color from the blue family, with medium lightness and vivid saturation. In the RGB model it is made of 1.57% red, 4.71% green and 81.57% blue; printed in CMYK it uses 98.08% cyan, 94.23% magenta, 0% yellow and 18.43% black. Its hue angle is 237.65°, with 96.23% saturation and 41.57% 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.1.

Description generated from the measured properties of this color.

Conversions of #040cd0 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 #303191 ≈ 0.001% of males
Protanopia #0048d5 ≈ 1.01% of males
Deuteranopia #0033cd ≈ 1.27% of males
Tritanopia #00577a ≈ 0.0001% of males
Protanomaly #0039d3 ≈ 1.08% of males
Deuteranomaly #0028ce ≈ 4.63% of males
Tritanomaly #0045a4 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040cd0 {
  color: #040cd0;
}
Background
.bg-040cd0 {
  background-color: #040cd0;
  color: #ffffff;
}
Border
.border-040cd0 {
  border: 2px solid #040cd0;
}
CSS variables
:root {
  --color-primary: #040cd0;
  --color-primary-rgb: 4 12 208;
  --color-primary-hsl: 238 96% 42%;
}
Gradient
.gradient-040cd0 {
  background: linear-gradient(135deg, #040cd0, #6204d0);
}
Colored shadow
.shadow-040cd0 {
  box-shadow: 0 8px 24px rgb(4 12 208 / 0.35);
}

Medium Blue
#040cd0  rgb(4, 12, 208)  hsl(238, 96%, 42%)  Medium Blue
#d0c804  rgb(208, 200, 4)  hsl(58, 96%, 42%)  Citrine
#d0040c  rgb(208, 4, 12)  hsl(358, 96%, 42%)  Rosso Corsa
#0cd004  rgb(12, 208, 4)  hsl(118, 96%, 42%)  Lime Green