#040CF0

#040cf0 ≈ Blue

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

#040cf0 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 94.12% blue; printed in CMYK it uses 98.33% cyan, 95% magenta, 0% yellow and 5.88% black. Its hue angle is 237.97°, with 96.72% saturation and 47.84% 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.07:1 (WCAG AAA). The closest named color is Blue (#0000ff), ΔE 1.64.

Description generated from the measured properties of this color.

Conversions of #040cf0 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.0658

Readable text 9.07:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.32:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #494949 ≈ 0.003% of males
Achromatomaly #3839a7 ≈ 0.001% of males
Protanopia #0054f5 ≈ 1.01% of males
Deuteranopia #003bed ≈ 1.27% of males
Tritanopia #00668d ≈ 0.0001% of males
Protanomaly #0042f3 ≈ 1.08% of males
Deuteranomaly #002fee ≈ 4.63% of males
Tritanomaly #0050bd ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Blue
#040cf0  rgb(4, 12, 240)  hsl(238, 97%, 48%)  Blue
#f0e804  rgb(240, 232, 4)  hsl(58, 97%, 48%)  Titanium Yellow
#f0040c  rgb(240, 4, 12)  hsl(358, 97%, 48%)  Lust
#0cf004  rgb(12, 240, 4)  hsl(118, 97%, 48%)  Lime