#2f255e ≈ Midnight Blue
#2f255e is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 18.43% red, 14.51% green and 36.86% blue; printed in CMYK it uses 50% cyan, 60.64% magenta, 0% yellow and 63.14% black. Its hue angle is 250.53°, with 43.51% 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 13.57:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.64.
Description generated from the measured properties of this color.
| 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 luminance | 0.0274 |
Shades
#2f255e mixed progressively with black.
Tints
#2f255e mixed progressively with white.
Tones
#2f255e mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2f255e {
color: #2f255e;
}
.bg-2f255e {
background-color: #2f255e;
color: #ffffff;
}
.border-2f255e {
border: 2px solid #2f255e;
}
:root {
--color-primary: #2f255e;
--color-primary-rgb: 47 37 94;
--color-primary-hsl: 251 44% 26%;
}
.gradient-2f255e {
background: linear-gradient(135deg, #2f255e, #4c255e);
}
.shadow-2f255e {
box-shadow: 0 8px 24px rgb(47 37 94 / 0.35);
}
Midnight Blue
#2f255e rgb(47, 37, 94) hsl(251, 44%, 26%) Midnight Blue
#545e25 rgb(84, 94, 37) hsl(71, 44%, 26%) Army Green
#5e2f25 rgb(94, 47, 37) hsl(11, 44%, 26%) Caput Mortuum
#255e2f rgb(37, 94, 47) hsl(131, 44%, 26%) Hunter Green