#040DF2

#040df2 ≈ Blue

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

#040df2 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.1% green and 94.9% blue; printed in CMYK it uses 98.35% cyan, 94.63% magenta, 0% yellow and 5.1% black. Its hue angle is 237.73°, with 96.75% saturation and 48.24% 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 8.96:1 (WCAG AAA). The closest named color is Blue (#0000ff), ΔE 1.4.

Description generated from the measured properties of this color.

Conversions of #040df2 into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#0000ff
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0672

Readable text 8.96:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.34:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #494949 ≈ 0.003% of males
Achromatomaly #393aa9 ≈ 0.001% of males
Protanopia #0055f7 ≈ 1.01% of males
Deuteranopia #003cef ≈ 1.27% of males
Tritanopia #00678f ≈ 0.0001% of males
Protanomaly #0043f5 ≈ 1.08% of males
Deuteranomaly #002ff0 ≈ 4.63% of males
Tritanomaly #0051bf ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040df2 {
  color: #040df2;
}
Background
.bg-040df2 {
  background-color: #040df2;
  color: #ffffff;
}
Border
.border-040df2 {
  border: 2px solid #040df2;
}
CSS variables
:root {
  --color-primary: #040df2;
  --color-primary-rgb: 4 13 242;
  --color-primary-hsl: 238 97% 48%;
}
Gradient
.gradient-040df2 {
  background: linear-gradient(135deg, #040df2, #7204f2);
}
Colored shadow
.shadow-040df2 {
  box-shadow: 0 8px 24px rgb(4 13 242 / 0.35);
}

Blue
#040df2  rgb(4, 13, 242)  hsl(238, 97%, 48%)  Blue
#f2e904  rgb(242, 233, 4)  hsl(58, 97%, 48%)  Titanium Yellow
#f2040d  rgb(242, 4, 13)  hsl(358, 97%, 48%)  Lust
#0df204  rgb(13, 242, 4)  hsl(118, 97%, 48%)  Lime