#042DFD

#042dfd ≈ Han Purple

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

#042dfd is a color from the blue family, with medium lightness and vivid saturation. In the RGB model it is made of 1.57% red, 17.65% green and 99.22% blue; printed in CMYK it uses 98.42% cyan, 82.21% magenta, 0% yellow and 0.78% black. Its hue angle is 230.12°, with 98.42% saturation and 50.39% 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.5:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 4.24.

Description generated from the measured properties of this color.

Conversions of #042dfd 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.0899

Readable text 7.5:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.8:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #555555 ≈ 0.003% of males
Achromatomaly #4248b2 ≈ 0.001% of males
Protanopia #0060ff ≈ 1.01% of males
Deuteranopia #0048fa ≈ 1.27% of males
Tritanopia #007299 ≈ 0.0001% of males
Protanomaly #0051ff ≈ 1.08% of males
Deuteranomaly #003ffb ≈ 4.63% of males
Tritanomaly #005ec9 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-042dfd {
  color: #042dfd;
}
Background
.bg-042dfd {
  background-color: #042dfd;
  color: #ffffff;
}
Border
.border-042dfd {
  border: 2px solid #042dfd;
}
CSS variables
:root {
  --color-primary: #042dfd;
  --color-primary-rgb: 4 45 253;
  --color-primary-hsl: 230 98% 50%;
}
Gradient
.gradient-042dfd {
  background: linear-gradient(135deg, #042dfd, #5704fd);
}
Colored shadow
.shadow-042dfd {
  box-shadow: 0 8px 24px rgb(4 45 253 / 0.35);
}

Han Purple
#042dfd  rgb(4, 45, 253)  hsl(230, 98%, 50%)  Han Purple
#fdd404  rgb(253, 212, 4)  hsl(50, 98%, 50%)  Cyber Yellow
#fd042d  rgb(253, 4, 45)  hsl(350, 98%, 50%)  Tractor Red
#2dfd04  rgb(45, 253, 4)  hsl(110, 98%, 50%)  Neon Green