Recognised as Colour
#40034C
- #40034C
- Magenta
- Dark
- Nearest: Midnight blue
#40034C is a magenta with RGB values 64, 3, 76 and HSL 290°, 92%, 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 Midnight blue.
Colour values
#40034C#40034C
HEX#40034C
RGBrgb(64, 3, 76)
RGB (0–1)0.251, 0.0118, 0.298
RGB percentages25.1%, 1.2%, 29.8%
HSLhsl(290.1, 92.4%, 15.5%)
HSV / HSBhsv(290.1, 96.1%, 29.8%)
CMYK15.8%, 96.1%, 0%, 70.2%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer4,195,148
CSS custom property--colour: #40034C;
Brightness & contrast
Relative luminance0.01677WCAG 2.x, 0 is black and 1 is white
Perceived brightness43.5 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 15.73:1
Contrast with white15.73:1WCAG normal text: AAA
Contrast with black1.34:1WCAG normal text: Fail
Greyscale equivalent#151515
Inverted#BFFCB3
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text15.73: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#0F4C03
Analogous#1C034C, #4C0333
Triadic#4C4003, #034C40
Split complementary#344C03, #034C1B
Tetradic#4C1C03, #0F4C03, #03334C
Tints, shades & saturation
Channel breakdown
R64
G3
B76
Red64 (25.1%)
Green3 (1.2%)
Blue76 (29.8%)
Hue290.14°
Saturation (HSL)92.41%
Lightness15.49%
Dominant channelBlue
Hex per channelR 40 · G 03 · B 4C
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