#042FEF

#042fef ≈ Blue

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

#042fef is a color from the blue family, with medium lightness and vivid saturation. In the RGB model it is made of 1.57% red, 18.43% green and 93.73% blue; printed in CMYK it uses 98.33% cyan, 80.33% magenta, 0% yellow and 6.27% black. Its hue angle is 229.02°, with 96.71% saturation and 47.65% 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 7.9:1 (WCAG AAA). The closest named color is Blue (#0000ff), ΔE 4.45.

Description generated from the measured properties of this color.

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

Readable text 7.9:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.66:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #515151 ≈ 0.003% of males
Achromatomaly #3f46a9 ≈ 0.001% of males
Protanopia #005cf4 ≈ 1.01% of males
Deuteranopia #0046ec ≈ 1.27% of males
Tritanopia #006d91 ≈ 0.0001% of males
Protanomaly #004ef2 ≈ 1.08% of males
Deuteranomaly #003eed ≈ 4.63% of males
Tritanomaly #005bbe ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-042fef {
  color: #042fef;
}
Background
.bg-042fef {
  background-color: #042fef;
  color: #ffffff;
}
Border
.border-042fef {
  border: 2px solid #042fef;
}
CSS variables
:root {
  --color-primary: #042fef;
  --color-primary-rgb: 4 47 239;
  --color-primary-hsl: 229 97% 48%;
}
Gradient
.gradient-042fef {
  background: linear-gradient(135deg, #042fef, #4e04ef);
}
Colored shadow
.shadow-042fef {
  box-shadow: 0 8px 24px rgb(4 47 239 / 0.35);
}

Blue
#042fef  rgb(4, 47, 239)  hsl(229, 97%, 48%)  Blue
#efc404  rgb(239, 196, 4)  hsl(49, 97%, 48%)  Jonquil
#ef042f  rgb(239, 4, 47)  hsl(349, 97%, 48%)  Tractor Red
#2fef04  rgb(47, 239, 4)  hsl(109, 97%, 48%)  Lime