Why did Tanjiro’s sword turn black?

Why did Tanjiro’s sword turn black? When Haganezuka sees Tanjiro’s reddish hair, he becomes hopeful that he will get to see a bright red Nichirin sword. However, once Tanjiro unsheathes his weapon, the blade turns a dark black, to the concern of Urokodaki and the anger of Haganezuka.

When Haganezuka sees Tanjiro’s reddish hair, he becomes hopeful that he will get to see a bright red Nichirin sword. However, once Tanjiro unsheathes his weapon, the blade turns a dark black, to the concern of Urokodaki and the anger of Haganezuka.