#040FD9

#040fd9 ≈ Medium Blue

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

#040fd9 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.88% green and 85.1% blue; printed in CMYK it uses 98.16% cyan, 93.09% magenta, 0% yellow and 14.9% black. Its hue angle is 236.9°, with 96.38% saturation and 43.33% 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.12:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 2.23.

Description generated from the measured properties of this color.

Conversions of #040fd9 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.0538

Readable text 10.12:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.08:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #424242 ≈ 0.003% of males
Achromatomaly #333497 ≈ 0.001% of males
Protanopia #004cde ≈ 1.01% of males
Deuteranopia #0036d6 ≈ 1.27% of males
Tritanopia #005c80 ≈ 0.0001% of males
Protanomaly #003cdc ≈ 1.08% of males
Deuteranomaly #002bd7 ≈ 4.63% of males
Tritanomaly #0049ab ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040fd9 {
  color: #040fd9;
}
Background
.bg-040fd9 {
  background-color: #040fd9;
  color: #ffffff;
}
Border
.border-040fd9 {
  border: 2px solid #040fd9;
}
CSS variables
:root {
  --color-primary: #040fd9;
  --color-primary-rgb: 4 15 217;
  --color-primary-hsl: 237 96% 43%;
}
Gradient
.gradient-040fd9 {
  background: linear-gradient(135deg, #040fd9, #6304d9);
}
Colored shadow
.shadow-040fd9 {
  box-shadow: 0 8px 24px rgb(4 15 217 / 0.35);
}

Medium Blue
#040fd9  rgb(4, 15, 217)  hsl(237, 96%, 43%)  Medium Blue
#d9ce04  rgb(217, 206, 4)  hsl(57, 96%, 43%)  Citrine
#d9040f  rgb(217, 4, 15)  hsl(357, 96%, 43%)  Rosso Corsa
#0fd904  rgb(15, 217, 4)  hsl(117, 96%, 43%)  Lime Green