The complementary color of #0040C1 is the color #C18100
The HSL model was used to determine the complementary color