#21145F

#21145f ≈ Midnight Blue

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

#21145f is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 12.94% red, 7.84% green and 37.25% blue; printed in CMYK it uses 65.26% cyan, 78.95% magenta, 0% yellow and 62.75% black. Its hue angle is 250.4°, with 65.22% saturation and 22.55% 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 15.79:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.38.

Description generated from the measured properties of this color.

Conversions of #21145f 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.0165

Readable text 15.79:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.33:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #232323 ≈ 0.003% of males
Achromatomaly #221e43 ≈ 0.001% of males
Protanopia #002561 ≈ 1.01% of males
Deuteranopia #00205e ≈ 1.27% of males
Tritanopia #002938 ≈ 0.0001% of males
Protanomaly #001f60 ≈ 1.08% of males
Deuteranomaly #001c5e ≈ 4.63% of males
Tritanomaly #0f224b ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-21145f {
  color: #21145f;
}
Background
.bg-21145f {
  background-color: #21145f;
  color: #ffffff;
}
Border
.border-21145f {
  border: 2px solid #21145f;
}
CSS variables
:root {
  --color-primary: #21145f;
  --color-primary-rgb: 33 20 95;
  --color-primary-hsl: 250 65% 23%;
}
Gradient
.gradient-21145f {
  background: linear-gradient(135deg, #21145f, #47145f);
}
Colored shadow
.shadow-21145f {
  box-shadow: 0 8px 24px rgb(33 20 95 / 0.35);
}

Midnight Blue
#21145f  rgb(33, 20, 95)  hsl(250, 65%, 23%)  Midnight Blue
#525f14  rgb(82, 95, 20)  hsl(70, 65%, 23%)  Army Green
#5f2114  rgb(95, 33, 20)  hsl(10, 65%, 23%)  Caput Mortuum
#145f21  rgb(20, 95, 33)  hsl(130, 65%, 23%)  Lincoln Green