Recognised as Colour
#402F40
- #402F40
- Magenta
- Dark
- Nearest: Dark slate grey
#402F40 is a magenta with RGB values 64, 47, 64 and HSL 300°, 15%, 22%. It is a dark colour, so white text on it reaches 12.4:1 contrast (AAA for normal text). The nearest named colour is Dark slate grey.
Colour values
#402F40#402F40
HEX#402F40
RGBrgb(64, 47, 64)
RGB (0–1)0.251, 0.1843, 0.251
RGB percentages25.1%, 18.4%, 25.1%
HSLhsl(300, 15.3%, 21.8%)
HSV / HSBhsv(300, 26.6%, 25.1%)
CMYK0%, 26.6%, 0%, 74.9%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer4,206,400
CSS custom property--colour: #402F40;
Brightness & contrast
Relative luminance0.03493WCAG 2.x, 0 is black and 1 is white
Perceived brightness54.7 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 12.36:1
Contrast with white12.36:1WCAG normal text: AAA
Contrast with black1.7:1WCAG normal text: Fail
Greyscale equivalent#343434
Inverted#BFD0BF
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text12.36:1WCAG large text: AAA
Contrast with black, large text1.7:1WCAG large text: Fail
Named colours
Hue familymagenta
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#2F402F
Analogous#382F40, #402F38
Triadic#40402F, #2F4040
Split complementary#38402F, #2F4038
Tetradic#40382F, #2F402F, #2F3840
Tints, shades & saturation
Channel breakdown
R64
G47
B64
Red64 (25.1%)
Green47 (18.4%)
Blue64 (25.1%)
Hue300°
Saturation (HSL)15.32%
Lightness21.76%
Dominant channelRed and Blue
Hex per channelR 40 · G 2F · B 40
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Harmonies
Similar named colours
Nerdulate something else
Nothing in mind? Surprise me · today’s page