#40403f ≈ Onyx
#40403f is a color from the gray family, with low lightness and almost no saturation. In the RGB model it is made of 25.1% red, 25.1% green and 24.71% blue; printed in CMYK it uses 0% cyan, 0% magenta, 1.56% yellow and 74.9% black. Its hue angle is 60°, with 0.79% saturation and 24.9% 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 10.38:1 (WCAG AAA). The closest named color is Onyx (#353839), ΔE 3.43.
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.0512 |
Shades
#40403f mixed progressively with black.
Tints
#40403f mixed progressively with white.
Tones
#40403f mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-40403f {
color: #40403f;
}
.bg-40403f {
background-color: #40403f;
color: #ffffff;
}
.border-40403f {
border: 2px solid #40403f;
}
:root {
--color-primary: #40403f;
--color-primary-rgb: 64 64 63;
--color-primary-hsl: 60 1% 25%;
}
.gradient-40403f {
background: linear-gradient(135deg, #40403f, #3f403f);
}
.shadow-40403f {
box-shadow: 0 8px 24px rgb(64 64 63 / 0.35);
}
Onyx
#40403f rgb(64, 64, 63) hsl(60, 1%, 25%) Onyx
#3f3f40 rgb(63, 63, 64) hsl(240, 1%, 25%) Onyx
#3f4040 rgb(63, 64, 64) hsl(180, 1%, 25%) Onyx
#403f40 rgb(64, 63, 64) hsl(300, 1%, 25%) Onyx