#2F256E

#2f256e ≈ Midnight Blue

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

#2f256e is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 18.43% red, 14.51% green and 43.14% blue; printed in CMYK it uses 57.27% cyan, 66.36% magenta, 0% yellow and 56.86% black. Its hue angle is 248.22°, with 49.66% saturation and 28.82% 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.04:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.23.

Description generated from the measured properties of this color.

Conversions of #2f256e 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.0305

Readable text 13.04:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.61:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #313131 ≈ 0.003% of males
Achromatomaly #302d50 ≈ 0.001% of males
Protanopia #003370 ≈ 1.01% of males
Deuteranopia #002e6d ≈ 1.27% of males
Tritanopia #133745 ≈ 0.0001% of males
Protanomaly #132e6f ≈ 1.08% of males
Deuteranomaly #122b6d ≈ 4.63% of males
Tritanomaly #213158 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2f256e {
  color: #2f256e;
}
Background
.bg-2f256e {
  background-color: #2f256e;
  color: #ffffff;
}
Border
.border-2f256e {
  border: 2px solid #2f256e;
}
CSS variables
:root {
  --color-primary: #2f256e;
  --color-primary-rgb: 47 37 110;
  --color-primary-hsl: 248 50% 29%;
}
Gradient
.gradient-2f256e {
  background: linear-gradient(135deg, #2f256e, #53256e);
}
Colored shadow
.shadow-2f256e {
  box-shadow: 0 8px 24px rgb(47 37 110 / 0.35);
}

Midnight Blue
#2f256e  rgb(47, 37, 110)  hsl(248, 50%, 29%)  Midnight Blue
#646e25  rgb(100, 110, 37)  hsl(68, 50%, 29%)  Dark Olive Green
#6e2f25  rgb(110, 47, 37)  hsl(8, 50%, 29%)  Caput Mortuum
#256e2f  rgb(37, 110, 47)  hsl(128, 50%, 29%)  Cadmium Green