#040FDF

#040fdf ≈ Medium Blue

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

#040fdf 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 87.45% blue; printed in CMYK it uses 98.21% cyan, 93.27% magenta, 0% yellow and 12.55% black. Its hue angle is 236.99°, with 96.48% saturation and 44.51% 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 9.82:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 2.92.

Description generated from the measured properties of this color.

Conversions of #040fdf 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.057

Readable text 9.82:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.14:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #434343 ≈ 0.003% of males
Achromatomaly #34359b ≈ 0.001% of males
Protanopia #004ee4 ≈ 1.01% of males
Deuteranopia #0037dc ≈ 1.27% of males
Tritanopia #005f83 ≈ 0.0001% of males
Protanomaly #003ee2 ≈ 1.08% of males
Deuteranomaly #002cdd ≈ 4.63% of males
Tritanomaly #004bb0 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Medium Blue
#040fdf  rgb(4, 15, 223)  hsl(237, 96%, 45%)  Medium Blue
#dfd404  rgb(223, 212, 4)  hsl(57, 96%, 45%)  Citrine
#df040f  rgb(223, 4, 15)  hsl(357, 96%, 45%)  Rosso Corsa
#0fdf04  rgb(15, 223, 4)  hsl(117, 96%, 45%)  Lime Green