#21126E

#21126e ≈ Midnight Blue

  • blue
  • Lightness: low
  • Saturation: moderate
  • Cool

#21126e is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 12.94% red, 7.06% green and 43.14% blue; printed in CMYK it uses 70% cyan, 83.64% magenta, 0% yellow and 56.86% black. Its hue angle is 249.78°, with 71.88% saturation and 25.1% lightness in HSL. It is a cool color, often associated with trust, stability and focus. Designers typically use it for technology products, finance and banking and luxury branding. White text on this color reaches a contrast ratio of 15.26:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.19.

Description generated from the measured properties of this color.

Conversions of #21126e 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.0188

Readable text 15.26:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.38:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #252525 ≈ 0.003% of males
Achromatomaly #241f4d ≈ 0.001% of males
Protanopia #002971 ≈ 1.01% of males
Deuteranopia #00226c ≈ 1.27% of males
Tritanopia #002e40 ≈ 0.0001% of males
Protanomaly #002270 ≈ 1.08% of males
Deuteranomaly #001c6d ≈ 4.63% of males
Tritanomaly #022556 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-21126e {
  color: #21126e;
}
Background
.bg-21126e {
  background-color: #21126e;
  color: #ffffff;
}
Border
.border-21126e {
  border: 2px solid #21126e;
}
CSS variables
:root {
  --color-primary: #21126e;
  --color-primary-rgb: 33 18 110;
  --color-primary-hsl: 250 72% 25%;
}
Gradient
.gradient-21126e {
  background: linear-gradient(135deg, #21126e, #4f126e);
}
Colored shadow
.shadow-21126e {
  box-shadow: 0 8px 24px rgb(33 18 110 / 0.35);
}

Midnight Blue
#21126e  rgb(33, 18, 110)  hsl(250, 72%, 25%)  Midnight Blue
#5f6e12  rgb(95, 110, 18)  hsl(70, 72%, 25%)  Dark Olive Green
#6e2112  rgb(110, 33, 18)  hsl(10, 72%, 25%)  Falu Red
#126e21  rgb(18, 110, 33)  hsl(130, 72%, 25%)  Pakistan Green