#2F206D

#2f206d ≈ Midnight Blue

  • violet
  • Lightness: low
  • Saturation: moderate
  • Cool

#2f206d is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 18.43% red, 12.55% green and 42.75% blue; printed in CMYK it uses 56.88% cyan, 70.64% magenta, 0% yellow and 57.25% black. Its hue angle is 251.69°, with 54.61% saturation and 27.65% 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 luxury branding. White text on this color reaches a contrast ratio of 13.56:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.52.

Description generated from the measured properties of this color.

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

Readable text 13.56:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.55:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2e2e2e ≈ 0.003% of males
Achromatomaly #2e294f ≈ 0.001% of males
Protanopia #00306f ≈ 1.01% of males
Deuteranopia #002c6b ≈ 1.27% of males
Tritanopia #143443 ≈ 0.0001% of males
Protanomaly #0e2a6e ≈ 1.08% of males
Deuteranomaly #0d276c ≈ 4.63% of males
Tritanomaly #222d57 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2f206d {
  color: #2f206d;
}
Background
.bg-2f206d {
  background-color: #2f206d;
  color: #ffffff;
}
Border
.border-2f206d {
  border: 2px solid #2f206d;
}
CSS variables
:root {
  --color-primary: #2f206d;
  --color-primary-rgb: 47 32 109;
  --color-primary-hsl: 252 55% 28%;
}
Gradient
.gradient-2f206d {
  background: linear-gradient(135deg, #2f206d, #56206d);
}
Colored shadow
.shadow-2f206d {
  box-shadow: 0 8px 24px rgb(47 32 109 / 0.35);
}

Midnight Blue
#2f206d  rgb(47, 32, 109)  hsl(252, 55%, 28%)  Midnight Blue
#5e6d20  rgb(94, 109, 32)  hsl(72, 55%, 28%)  Dark Olive Green
#6d2f20  rgb(109, 47, 32)  hsl(12, 55%, 28%)  Caput Mortuum
#206d2f  rgb(32, 109, 47)  hsl(132, 55%, 28%)  Cadmium Green