Recognised as Colour
#40176C
- #40176C
- Violet
- Dark
- Nearest: Midnight blue
#40176C is a violet with RGB values 64, 23, 108 and HSL 269°, 65%, 26%. It is a dark colour, so white text on it reaches 13.5:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#40176C#40176C
HEX#40176C
RGBrgb(64, 23, 108)
RGB (0–1)0.251, 0.0902, 0.4235
RGB percentages25.1%, 9%, 42.4%
HSLhsl(268.9, 64.9%, 25.7%)
HSV / HSBhsv(268.9, 78.7%, 42.4%)
CMYK40.7%, 78.7%, 0%, 57.6%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer4,200,300
CSS custom property--colour: #40176C;
Brightness & contrast
Relative luminance0.02785WCAG 2.x, 0 is black and 1 is white
Perceived brightness53.5 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 13.49:1
Contrast with white13.49:1WCAG normal text: AAA
Contrast with black1.56:1WCAG normal text: Fail
Greyscale equivalent#262626
Inverted#BFE893
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text13.49:1WCAG large text: AAA
Contrast with black, large text1.56:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#436C17
Analogous#17186C, #6B176C
Triadic#6C4017, #176C40
Split complementary#6C6A17, #196C17
Tetradic#6C1718, #436C17, #176C6B
Tints, shades & saturation
Channel breakdown
R64
G23
B108
Red64 (25.1%)
Green23 (9%)
Blue108 (42.4%)
Hue268.94°
Saturation (HSL)64.89%
Lightness25.69%
Dominant channelBlue
Hex per channelR 40 · G 17 · B 6C
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