The complementary color of #040A18 is the color #181204
The HSL model was used to determine the complementary color