#2F2D76

#2f2d76 ≈ Midnight Blue

  • blue
  • Lightness: low
  • Saturation: moderate
  • Cool

#2f2d76 is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 18.43% red, 17.65% green and 46.27% blue; printed in CMYK it uses 60.17% cyan, 61.86% magenta, 0% yellow and 53.73% black. Its hue angle is 241.64°, with 44.79% saturation and 31.96% 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 corporate identities. White text on this color reaches a contrast ratio of 11.95:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.75.

Description generated from the measured properties of this color.

Conversions of #2f2d76 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.0379

Readable text 11.95:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.76:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #373737 ≈ 0.003% of males
Achromatomaly #343357 ≈ 0.001% of males
Protanopia #003a78 ≈ 1.01% of males
Deuteranopia #003475 ≈ 1.27% of males
Tritanopia #043f4d ≈ 0.0001% of males
Protanomaly #163577 ≈ 1.08% of males
Deuteranomaly #133175 ≈ 4.63% of males
Tritanomaly #1d3860 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2f2d76 {
  color: #2f2d76;
}
Background
.bg-2f2d76 {
  background-color: #2f2d76;
  color: #ffffff;
}
Border
.border-2f2d76 {
  border: 2px solid #2f2d76;
}
CSS variables
:root {
  --color-primary: #2f2d76;
  --color-primary-rgb: 47 45 118;
  --color-primary-hsl: 242 45% 32%;
}
Gradient
.gradient-2f2d76 {
  background: linear-gradient(135deg, #2f2d76, #532d76);
}
Colored shadow
.shadow-2f2d76 {
  box-shadow: 0 8px 24px rgb(47 45 118 / 0.35);
}

Midnight Blue
#2f2d76  rgb(47, 45, 118)  hsl(242, 45%, 32%)  Midnight Blue
#74762d  rgb(116, 118, 45)  hsl(62, 45%, 32%)  Olive
#762f2d  rgb(118, 47, 45)  hsl(2, 45%, 32%)  Wine
#2d762f  rgb(45, 118, 47)  hsl(122, 45%, 32%)  Fern Green