Recognised as Colour
#400A42
- #400A42
- Magenta
- Dark
- Nearest: Dark slateblue
#400A42 is a magenta with RGB values 64, 10, 66 and HSL 298°, 74%, 15%. It is a dark colour, so white text on it reaches 15.7:1 contrast (AAA for normal text). The nearest named colour is Dark slateblue.
Colour values
#400A42#400A42
HEX#400A42
RGBrgb(64, 10, 66)
RGB (0–1)0.251, 0.0392, 0.2588
RGB percentages25.1%, 3.9%, 25.9%
HSLhsl(297.9, 73.7%, 14.9%)
HSV / HSBhsv(297.9, 84.8%, 25.9%)
CMYK3%, 84.8%, 0%, 74.1%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer4,196,930
CSS custom property--colour: #400A42;
Brightness & contrast
Relative luminance0.017WCAG 2.x, 0 is black and 1 is white
Perceived brightness42.2 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 15.67:1
Contrast with white15.67:1WCAG normal text: AAA
Contrast with black1.34:1WCAG normal text: Fail
Greyscale equivalent#1A1A1A
Inverted#BFF5BD
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text15.67:1WCAG large text: AAA
Contrast with black, large text1.34:1WCAG large text: Fail
Named colours
Hue familymagenta
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#0C420A
Analogous#240A42, #420A28
Triadic#42400A, #0A4240
Split complementary#28420A, #0A4224
Tetradic#42240A, #0C420A, #0A2842
Tints, shades & saturation
Channel breakdown
R64
G10
B66
Red64 (25.1%)
Green10 (3.9%)
Blue66 (25.9%)
Hue297.86°
Saturation (HSL)73.68%
Lightness14.9%
Dominant channelBlue
Hex per channelR 40 · G 0A · B 42
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