Why is my dishwasher black inside?

High manganese content in the water would be the primary culprit. A treatment system for iron/manganese removal may be required.