#21054F

#21054f ≈ Midnight Blue

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

#21054f 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, 1.96% green and 30.98% blue; printed in CMYK it uses 58.23% cyan, 93.67% magenta, 0% yellow and 69.02% black. Its hue angle is 262.7°, with 88.1% saturation and 16.47% 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.51:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 7.21.

Description generated from the measured properties of this color.

Conversions of #21054f 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.01

Readable text 17.51:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.2:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #191919 ≈ 0.003% of males
Achromatomaly #1d1336 ≈ 0.001% of males
Protanopia #001b51 ≈ 1.01% of males
Deuteranopia #00184e ≈ 1.27% of males
Tritanopia #101c2c ≈ 0.0001% of males
Protanomaly #001450 ≈ 1.08% of males
Deuteranomaly #00124e ≈ 4.63% of males
Tritanomaly #18153d ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-21054f {
  color: #21054f;
}
Background
.bg-21054f {
  background-color: #21054f;
  color: #ffffff;
}
Border
.border-21054f {
  border: 2px solid #21054f;
}
CSS variables
:root {
  --color-primary: #21054f;
  --color-primary-rgb: 33 5 79;
  --color-primary-hsl: 263 88% 16%;
}
Gradient
.gradient-21054f {
  background: linear-gradient(135deg, #21054f, #46054f);
}
Colored shadow
.shadow-21054f {
  box-shadow: 0 8px 24px rgb(33 5 79 / 0.35);
}

Midnight Blue
#21054f  rgb(33, 5, 79)  hsl(263, 88%, 16%)  Midnight Blue
#334f05  rgb(51, 79, 5)  hsl(83, 88%, 16%)  Lincoln Green
#4f2105  rgb(79, 33, 5)  hsl(23, 88%, 16%)  Caput Mortuum
#054f21  rgb(5, 79, 33)  hsl(143, 88%, 16%)  British Racing Green