The complementary color of #040C07 is the color #0C0409
The HSL model was used to determine the complementary color