The hex color #40407d is a dark color. The web-safe version is Hex
#333366. A complementary color is
#BFBF82. The grayscale version is
#545454. A 20% lighter version of the original color is
#7373B0, and Hex
#0D0D4A is the 20% darker color. If the color is saturated by 10%, you get
#3E3E81. If the color is desaturated by 10%, the color
#424279 is obtained.