#040EF8

#040ef8 ≈ Blue

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

#040ef8 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.49% green and 97.25% blue; printed in CMYK it uses 98.39% cyan, 94.35% magenta, 0% yellow and 2.75% black. Its hue angle is 237.54°, with 96.83% saturation and 49.41% 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.67:1 (WCAG AAA). The closest named color is Blue (#0000ff), ΔE 0.81.

Description generated from the measured properties of this color.

Conversions of #040ef8 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.0712

Readable text 8.67:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.42:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #4b4b4b ≈ 0.003% of males
Achromatomaly #3b3cad ≈ 0.001% of males
Protanopia #0058fe ≈ 1.01% of males
Deuteranopia #003ef5 ≈ 1.27% of males
Tritanopia #006992 ≈ 0.0001% of males
Protanomaly #0045fb ≈ 1.08% of males
Deuteranomaly #0031f6 ≈ 4.63% of males
Tritanomaly #0053c3 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Blue
#040ef8  rgb(4, 14, 248)  hsl(238, 97%, 49%)  Blue
#f8ee04  rgb(248, 238, 4)  hsl(58, 97%, 49%)  Aureolin
#f8040e  rgb(248, 4, 14)  hsl(358, 97%, 49%)  Red
#0ef804  rgb(14, 248, 4)  hsl(118, 97%, 49%)  Lime