#040FF4

#040ff4 ≈ Blue

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

#040ff4 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 95.69% blue; printed in CMYK it uses 98.36% cyan, 93.85% magenta, 0% yellow and 4.31% black. Its hue angle is 237.25°, with 96.77% saturation and 48.63% 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.82:1 (WCAG AAA). The closest named color is Blue (#0000ff), ΔE 1.19.

Description generated from the measured properties of this color.

Conversions of #040ff4 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.069

Readable text 8.82:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.38:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #4a4a4a ≈ 0.003% of males
Achromatomaly #3a3baa ≈ 0.001% of males
Protanopia #0056f9 ≈ 1.01% of males
Deuteranopia #003df1 ≈ 1.27% of males
Tritanopia #006890 ≈ 0.0001% of males
Protanomaly #0044f7 ≈ 1.08% of males
Deuteranomaly #0030f2 ≈ 4.63% of males
Tritanomaly #0052c0 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040ff4 {
  color: #040ff4;
}
Background
.bg-040ff4 {
  background-color: #040ff4;
  color: #ffffff;
}
Border
.border-040ff4 {
  border: 2px solid #040ff4;
}
CSS variables
:root {
  --color-primary: #040ff4;
  --color-primary-rgb: 4 15 244;
  --color-primary-hsl: 237 97% 49%;
}
Gradient
.gradient-040ff4 {
  background: linear-gradient(135deg, #040ff4, #7104f4);
}
Colored shadow
.shadow-040ff4 {
  box-shadow: 0 8px 24px rgb(4 15 244 / 0.35);
}

Blue
#040ff4  rgb(4, 15, 244)  hsl(237, 97%, 49%)  Blue
#f4e904  rgb(244, 233, 4)  hsl(57, 97%, 49%)  Titanium Yellow
#f4040f  rgb(244, 4, 15)  hsl(357, 97%, 49%)  Red
#0ff404  rgb(15, 244, 4)  hsl(117, 97%, 49%)  Lime