The complementary color of #40387D is the color #767D38
The HSL model was used to determine the complementary color