#2F04D2

#2f04d2 ≈ Medium Blue

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

#2f04d2 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 82.35% blue; printed in CMYK it uses 77.62% cyan, 98.1% magenta, 0% yellow and 17.65% black. Its hue angle is 252.52°, with 96.26% saturation and 41.96% 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 10.15:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 2.23.

Description generated from the measured properties of this color.

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

Readable text 10.15:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.07:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #414141 ≈ 0.003% of males
Achromatomaly #3b3393 ≈ 0.001% of males
Protanopia #004ad7 ≈ 1.01% of males
Deuteranopia #0038cf ≈ 1.27% of males
Tritanopia #00567b ≈ 0.0001% of males
Protanomaly #0039d5 ≈ 1.08% of males
Deuteranomaly #002bd0 ≈ 4.63% of males
Tritanomaly #0043a5 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2f04d2 {
  color: #2f04d2;
}
Background
.bg-2f04d2 {
  background-color: #2f04d2;
  color: #ffffff;
}
Border
.border-2f04d2 {
  border: 2px solid #2f04d2;
}
CSS variables
:root {
  --color-primary: #2f04d2;
  --color-primary-rgb: 47 4 210;
  --color-primary-hsl: 253 96% 42%;
}
Gradient
.gradient-2f04d2 {
  background: linear-gradient(135deg, #2f04d2, #9604d2);
}
Colored shadow
.shadow-2f04d2 {
  box-shadow: 0 8px 24px rgb(47 4 210 / 0.35);
}

Medium Blue
#2f04d2  rgb(47, 4, 210)  hsl(253, 96%, 42%)  Medium Blue
#a7d204  rgb(167, 210, 4)  hsl(73, 96%, 42%)  Yellow Green
#d22f04  rgb(210, 47, 4)  hsl(13, 96%, 42%)  Sinopia
#04d22f  rgb(4, 210, 47)  hsl(133, 96%, 42%)  Lime Green