#21074E

#21074e ≈ Midnight Blue

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

#21074e is a color from the violet family, with very low lightness and moderate saturation. In the RGB model it is made of 12.94% red, 2.75% green and 30.59% blue; printed in CMYK it uses 57.69% cyan, 91.03% magenta, 0% yellow and 69.41% black. Its hue angle is 261.97°, with 83.53% saturation and 16.67% 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 17.43:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 7.18.

Description generated from the measured properties of this color.

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

Readable text 17.43:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.21:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #1a1a1a ≈ 0.003% of males
Achromatomaly #1d1436 ≈ 0.001% of males
Protanopia #001b50 ≈ 1.01% of males
Deuteranopia #00184d ≈ 1.27% of males
Tritanopia #101d2c ≈ 0.0001% of males
Protanomaly #00154f ≈ 1.08% of males
Deuteranomaly #00134d ≈ 4.63% of males
Tritanomaly #18163c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-21074e {
  color: #21074e;
}
Background
.bg-21074e {
  background-color: #21074e;
  color: #ffffff;
}
Border
.border-21074e {
  border: 2px solid #21074e;
}
CSS variables
:root {
  --color-primary: #21074e;
  --color-primary-rgb: 33 7 78;
  --color-primary-hsl: 262 84% 17%;
}
Gradient
.gradient-21074e {
  background: linear-gradient(135deg, #21074e, #45074e);
}
Colored shadow
.shadow-21074e {
  box-shadow: 0 8px 24px rgb(33 7 78 / 0.35);
}

Midnight Blue
#21074e  rgb(33, 7, 78)  hsl(262, 84%, 17%)  Midnight Blue
#344e07  rgb(52, 78, 7)  hsl(82, 84%, 17%)  Army Green
#4e2107  rgb(78, 33, 7)  hsl(22, 84%, 17%)  Caput Mortuum
#074e21  rgb(7, 78, 33)  hsl(142, 84%, 17%)  British Racing Green