#2F0CCC

#2f0ccc ≈ Medium Blue

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

#2f0ccc is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 18.43% red, 4.71% green and 80% blue; printed in CMYK it uses 76.96% cyan, 94.12% magenta, 0% yellow and 20% black. Its hue angle is 250.94°, with 88.89% saturation and 42.35% 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.27:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 2.1.

Description generated from the measured properties of this color.

Conversions of #2f0ccc 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.0523

Readable text 10.27:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.05:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #414141 ≈ 0.003% of males
Achromatomaly #3a338f ≈ 0.001% of males
Protanopia #0049d1 ≈ 1.01% of males
Deuteranopia #0038c9 ≈ 1.27% of males
Tritanopia #005578 ≈ 0.0001% of males
Protanomaly #0039cf ≈ 1.08% of males
Deuteranomaly #002cca ≈ 4.63% of males
Tritanomaly #0043a0 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2f0ccc {
  color: #2f0ccc;
}
Background
.bg-2f0ccc {
  background-color: #2f0ccc;
  color: #ffffff;
}
Border
.border-2f0ccc {
  border: 2px solid #2f0ccc;
}
CSS variables
:root {
  --color-primary: #2f0ccc;
  --color-primary-rgb: 47 12 204;
  --color-primary-hsl: 251 89% 42%;
}
Gradient
.gradient-2f0ccc {
  background: linear-gradient(135deg, #2f0ccc, #8f0ccc);
}
Colored shadow
.shadow-2f0ccc {
  box-shadow: 0 8px 24px rgb(47 12 204 / 0.35);
}

Medium Blue
#2f0ccc  rgb(47, 12, 204)  hsl(251, 89%, 42%)  Medium Blue
#a9cc0c  rgb(169, 204, 12)  hsl(71, 89%, 42%)  Yellow Green
#cc2f0c  rgb(204, 47, 12)  hsl(11, 89%, 42%)  Rosso Corsa
#0ccc2f  rgb(12, 204, 47)  hsl(131, 89%, 42%)  Lime Green