#040FD1

#040fd1 ≈ Medium Blue

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

#040fd1 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 81.96% blue; printed in CMYK it uses 98.09% cyan, 92.82% magenta, 0% yellow and 18.04% black. Its hue angle is 236.78°, with 96.24% saturation and 41.76% 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.53:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 1.42.

Description generated from the measured properties of this color.

Conversions of #040fd1 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.0497

Readable text 10.53:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.99:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #3f3f3f ≈ 0.003% of males
Achromatomaly #313291 ≈ 0.001% of males
Protanopia #0049d6 ≈ 1.01% of males
Deuteranopia #0034ce ≈ 1.27% of males
Tritanopia #00587b ≈ 0.0001% of males
Protanomaly #003ad4 ≈ 1.08% of males
Deuteranomaly #0029cf ≈ 4.63% of males
Tritanomaly #0046a4 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Medium Blue
#040fd1  rgb(4, 15, 209)  hsl(237, 96%, 42%)  Medium Blue
#d1c604  rgb(209, 198, 4)  hsl(57, 96%, 42%)  Citrine
#d1040f  rgb(209, 4, 15)  hsl(357, 96%, 42%)  Rosso Corsa
#0fd104  rgb(15, 209, 4)  hsl(117, 96%, 42%)  Lime Green