#040CF5

#040cf5 ≈ Blue

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

#040cf5 is a color from the blue family, with medium lightness and vivid saturation. In the RGB model it is made of 1.57% red, 4.71% green and 96.08% blue; printed in CMYK it uses 98.37% cyan, 95.1% magenta, 0% yellow and 3.92% black. Its hue angle is 238.01°, with 96.79% saturation and 48.82% 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.84:1 (WCAG AAA). The closest named color is Blue (#0000ff), ΔE 1.07.

Description generated from the measured properties of this color.

Conversions of #040cf5 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.0688

Readable text 8.84: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 #3a3aab ≈ 0.001% of males
Protanopia #0056fb ≈ 1.01% of males
Deuteranopia #003df2 ≈ 1.27% of males
Tritanopia #006890 ≈ 0.0001% of males
Protanomaly #0044f8 ≈ 1.08% of males
Deuteranomaly #0030f3 ≈ 4.63% of males
Tritanomaly #0052c1 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040cf5 {
  color: #040cf5;
}
Background
.bg-040cf5 {
  background-color: #040cf5;
  color: #ffffff;
}
Border
.border-040cf5 {
  border: 2px solid #040cf5;
}
CSS variables
:root {
  --color-primary: #040cf5;
  --color-primary-rgb: 4 12 245;
  --color-primary-hsl: 238 97% 49%;
}
Gradient
.gradient-040cf5 {
  background: linear-gradient(135deg, #040cf5, #7404f5);
}
Colored shadow
.shadow-040cf5 {
  box-shadow: 0 8px 24px rgb(4 12 245 / 0.35);
}

Blue
#040cf5  rgb(4, 12, 245)  hsl(238, 97%, 49%)  Blue
#f5ed04  rgb(245, 237, 4)  hsl(58, 97%, 49%)  Titanium Yellow
#f5040c  rgb(245, 4, 12)  hsl(358, 97%, 49%)  Red
#0cf504  rgb(12, 245, 4)  hsl(118, 97%, 49%)  Lime