#2F04FF

#2f04ff ≈ Ultramarine

  • violet
  • Lightness: medium
  • Saturation: vivid
  • Cool

#2f04ff is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 18.43% red, 1.57% green and 100% blue; printed in CMYK it uses 81.57% cyan, 98.43% magenta, 0% yellow and 0% black. Its hue angle is 250.28°, with 100% saturation and 50.78% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. Designers typically use it for beauty and cosmetics, creative studios and call-to-action buttons. White text on this color reaches a contrast ratio of 8.13:1 (WCAG AAA). The closest named color is Ultramarine (#3f00ff), ΔE 0.93.

Description generated from the measured properties of this color.

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

Readable text 8.13:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.58:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #4f4f4f ≈ 0.003% of males
Achromatomaly #453eb2 ≈ 0.001% of males
Protanopia #005bff ≈ 1.01% of males
Deuteranopia #0043fb ≈ 1.27% of males
Tritanopia #006b96 ≈ 0.0001% of males
Protanomaly #0047ff ≈ 1.08% of males
Deuteranomaly #0034fd ≈ 4.63% of males
Tritanomaly #0054c9 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Ultramarine
#2f04ff  rgb(47, 4, 255)  hsl(250, 100%, 51%)  Ultramarine
#d4ff04  rgb(212, 255, 4)  hsl(70, 100%, 51%)  Electric Lime
#ff2f04  rgb(255, 47, 4)  hsl(10, 100%, 51%)  Ferrari Red
#04ff2f  rgb(4, 255, 47)  hsl(130, 100%, 51%)  Lime