#270C4E

#270c4e ≈ Midnight Blue

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

#270c4e is a color from the violet family, with very low lightness and moderate saturation. In the RGB model it is made of 15.29% red, 4.71% green and 30.59% blue; printed in CMYK it uses 50% cyan, 84.62% magenta, 0% yellow and 69.41% black. Its hue angle is 264.55°, with 73.33% saturation and 17.65% 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.82:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 7.45.

Description generated from the measured properties of this color.

Conversions of #270c4e 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.0124

Readable text 16.82:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.25:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #1d1d1d ≈ 0.003% of males
Achromatomaly #211837 ≈ 0.001% of males
Protanopia #001e50 ≈ 1.01% of males
Deuteranopia #001c4d ≈ 1.27% of males
Tritanopia #1c1e2d ≈ 0.0001% of males
Protanomaly #0a184f ≈ 1.08% of males
Deuteranomaly #0d174d ≈ 4.63% of males
Tritanomaly #21183d ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-270c4e {
  color: #270c4e;
}
Background
.bg-270c4e {
  background-color: #270c4e;
  color: #ffffff;
}
Border
.border-270c4e {
  border: 2px solid #270c4e;
}
CSS variables
:root {
  --color-primary: #270c4e;
  --color-primary-rgb: 39 12 78;
  --color-primary-hsl: 265 73% 18%;
}
Gradient
.gradient-270c4e {
  background: linear-gradient(135deg, #270c4e, #480c4e);
}
Colored shadow
.shadow-270c4e {
  box-shadow: 0 8px 24px rgb(39 12 78 / 0.35);
}

Midnight Blue
#270c4e  rgb(39, 12, 78)  hsl(265, 73%, 18%)  Midnight Blue
#334e0c  rgb(51, 78, 12)  hsl(85, 73%, 18%)  Army Green
#4e270c  rgb(78, 39, 12)  hsl(25, 73%, 18%)  Caput Mortuum
#0c4e27  rgb(12, 78, 39)  hsl(145, 73%, 18%)  British Racing Green