#28186B

#28186b ≈ Midnight Blue

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

#28186b is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 15.69% red, 9.41% green and 41.96% blue; printed in CMYK it uses 62.62% cyan, 77.57% magenta, 0% yellow and 58.04% black. Its hue angle is 251.57°, with 63.36% saturation and 25.69% 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 14.65:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.35.

Description generated from the measured properties of this color.

Conversions of #28186b 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.0217

Readable text 14.65:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.43:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #282828 ≈ 0.003% of males
Achromatomaly #28234c ≈ 0.001% of males
Protanopia #002b6d ≈ 1.01% of males
Deuteranopia #002669 ≈ 1.27% of males
Tritanopia #002f40 ≈ 0.0001% of males
Protanomaly #00256c ≈ 1.08% of males
Deuteranomaly #00216a ≈ 4.63% of males
Tritanomaly #162854 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-28186b {
  color: #28186b;
}
Background
.bg-28186b {
  background-color: #28186b;
  color: #ffffff;
}
Border
.border-28186b {
  border: 2px solid #28186b;
}
CSS variables
:root {
  --color-primary: #28186b;
  --color-primary-rgb: 40 24 107;
  --color-primary-hsl: 252 63% 26%;
}
Gradient
.gradient-28186b {
  background: linear-gradient(135deg, #28186b, #52186b);
}
Colored shadow
.shadow-28186b {
  box-shadow: 0 8px 24px rgb(40 24 107 / 0.35);
}

Midnight Blue
#28186b  rgb(40, 24, 107)  hsl(252, 63%, 26%)  Midnight Blue
#5b6b18  rgb(91, 107, 24)  hsl(72, 63%, 26%)  Dark Olive Green
#6b2818  rgb(107, 40, 24)  hsl(12, 63%, 26%)  Caput Mortuum
#186b28  rgb(24, 107, 40)  hsl(132, 63%, 26%)  Pakistan Green