#28124D

#28124d ≈ Midnight Blue

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

#28124d is a color from the violet family, with very low lightness and muted saturation. In the RGB model it is made of 15.69% red, 7.06% green and 30.2% blue; printed in CMYK it uses 48.05% cyan, 76.62% magenta, 0% yellow and 69.8% black. Its hue angle is 262.37°, with 62.11% saturation and 18.63% 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 16.36:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 7.63.

Description generated from the measured properties of this color.

Conversions of #28124d 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.0142

Readable text 16.36:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.28:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #202020 ≈ 0.003% of males
Achromatomaly #231b37 ≈ 0.001% of males
Protanopia #00204f ≈ 1.01% of males
Deuteranopia #001f4c ≈ 1.27% of males
Tritanopia #1e212e ≈ 0.0001% of males
Protanomaly #101b4e ≈ 1.08% of males
Deuteranomaly #121a4c ≈ 4.63% of males
Tritanomaly #221c3c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-28124d {
  color: #28124d;
}
Background
.bg-28124d {
  background-color: #28124d;
  color: #ffffff;
}
Border
.border-28124d {
  border: 2px solid #28124d;
}
CSS variables
:root {
  --color-primary: #28124d;
  --color-primary-rgb: 40 18 77;
  --color-primary-hsl: 262 62% 19%;
}
Gradient
.gradient-28124d {
  background: linear-gradient(135deg, #28124d, #46124d);
}
Colored shadow
.shadow-28124d {
  box-shadow: 0 8px 24px rgb(40 18 77 / 0.35);
}

Midnight Blue
#28124d  rgb(40, 18, 77)  hsl(262, 62%, 19%)  Midnight Blue
#374d12  rgb(55, 77, 18)  hsl(82, 62%, 19%)  Army Green
#4d2812  rgb(77, 40, 18)  hsl(22, 62%, 19%)  Caput Mortuum
#124d28  rgb(18, 77, 40)  hsl(142, 62%, 19%)  British Racing Green