You may turn a blade black by storing your Haki in it as you use it.
That doesnt necessarily mean that it's a fully hakified sword permanently. We dont really know the mechanics of how it works.
Personally, i believe it's CoC that turns a blade black, due to other considerations... like Zoro's future powerups.