#313438 ≈ Onyx
#313438 is a color from the gray family, with low lightness and almost no saturation. In the RGB model it is made of 19.22% red, 20.39% green and 21.96% blue; printed in CMYK it uses 12.5% cyan, 7.14% magenta, 0% yellow and 78.04% black. Its hue angle is 214.29°, with 6.67% saturation and 20.59% lightness in HSL. It is a neutral color, often associated with neutrality, balance and professionalism. Designers typically use it for body text and typography and corporate identities. White text on this color reaches a contrast ratio of 12.51:1 (WCAG AAA). The closest named color is Onyx (#353839), ΔE 2.39.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #333333 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0339 |
Shades
#313438 mixed progressively with black.
Tints
#313438 mixed progressively with white.
Tones
#313438 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-313438 {
color: #313438;
}
.bg-313438 {
background-color: #313438;
color: #ffffff;
}
.border-313438 {
border: 2px solid #313438;
}
:root {
--color-primary: #313438;
--color-primary-rgb: 49 52 56;
--color-primary-hsl: 214 7% 21%;
}
.gradient-313438 {
background: linear-gradient(135deg, #313438, #323138);
}
.shadow-313438 {
box-shadow: 0 8px 24px rgb(49 52 56 / 0.35);
}
Onyx
#313438 rgb(49, 52, 56) hsl(214, 7%, 21%) Onyx
#383531 rgb(56, 53, 49) hsl(34, 7%, 21%) Jet
#383134 rgb(56, 49, 52) hsl(334, 7%, 21%) Jet
#343831 rgb(52, 56, 49) hsl(94, 7%, 21%) Black Olive