#042AFF

#042aff ≈ Ultramarine

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

#042aff is a color from the blue family, with medium lightness and vivid saturation. In the RGB model it is made of 1.57% red, 16.47% green and 100% blue; printed in CMYK it uses 98.43% cyan, 83.53% magenta, 0% yellow and 0% black. Its hue angle is 230.92°, with 100% saturation and 50.78% 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.55:1 (WCAG AAA). The closest named color is Ultramarine (#3f00ff), ΔE 3.84.

Description generated from the measured properties of this color.

Conversions of #042aff 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.089

Readable text 7.55:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.78:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #545454 ≈ 0.003% of males
Achromatomaly #4247b3 ≈ 0.001% of males
Protanopia #0060ff ≈ 1.01% of males
Deuteranopia #0047fc ≈ 1.27% of males
Tritanopia #007299 ≈ 0.0001% of males
Protanomaly #0050ff ≈ 1.08% of males
Deuteranomaly #003dfd ≈ 4.63% of males
Tritanomaly #005eca ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-042aff {
  color: #042aff;
}
Background
.bg-042aff {
  background-color: #042aff;
  color: #ffffff;
}
Border
.border-042aff {
  border: 2px solid #042aff;
}
CSS variables
:root {
  --color-primary: #042aff;
  --color-primary-rgb: 4 42 255;
  --color-primary-hsl: 231 100% 51%;
}
Gradient
.gradient-042aff {
  background: linear-gradient(135deg, #042aff, #5c04ff);
}
Colored shadow
.shadow-042aff {
  box-shadow: 0 8px 24px rgb(4 42 255 / 0.35);
}

Ultramarine
#042aff  rgb(4, 42, 255)  hsl(231, 100%, 51%)  Ultramarine
#ffd904  rgb(255, 217, 4)  hsl(51, 100%, 51%)  Gold
#ff042a  rgb(255, 4, 42)  hsl(351, 100%, 51%)  Tractor Red
#2aff04  rgb(42, 255, 4)  hsl(111, 100%, 51%)  Neon Green