#271E72

#271e72 ≈ Midnight Blue

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

#271e72 is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 15.29% red, 11.76% green and 44.71% blue; printed in CMYK it uses 65.79% cyan, 73.68% magenta, 0% yellow and 55.29% black. Its hue angle is 246.43°, with 58.33% saturation and 28.24% 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 13.86:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 1.94.

Description generated from the measured properties of this color.

Conversions of #271e72 into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#333366
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0257

Readable text 13.86:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.51:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2d2d2d ≈ 0.003% of males
Achromatomaly #2a2751 ≈ 0.001% of males
Protanopia #003075 ≈ 1.01% of males
Deuteranopia #002970 ≈ 1.27% of males
Tritanopia #003545 ≈ 0.0001% of males
Protanomaly #002a74 ≈ 1.08% of males
Deuteranomaly #002571 ≈ 4.63% of males
Tritanomaly #0f2d5b ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-271e72 {
  color: #271e72;
}
Background
.bg-271e72 {
  background-color: #271e72;
  color: #ffffff;
}
Border
.border-271e72 {
  border: 2px solid #271e72;
}
CSS variables
:root {
  --color-primary: #271e72;
  --color-primary-rgb: 39 30 114;
  --color-primary-hsl: 246 58% 28%;
}
Gradient
.gradient-271e72 {
  background: linear-gradient(135deg, #271e72, #511e72);
}
Colored shadow
.shadow-271e72 {
  box-shadow: 0 8px 24px rgb(39 30 114 / 0.35);
}

Midnight Blue
#271e72  rgb(39, 30, 114)  hsl(246, 58%, 28%)  Midnight Blue
#69721e  rgb(105, 114, 30)  hsl(66, 58%, 28%)  Dark Olive Green
#72271e  rgb(114, 39, 30)  hsl(6, 58%, 28%)  Falu Red
#1e7227  rgb(30, 114, 39)  hsl(126, 58%, 28%)  Pakistan Green