Any truth to the practice of BLACK painted parts dissipating heat better?

Isn't anything black if it's under a closed hood not exposed to light?
I'm not convinced of or doubting this theory. I just am looking for some rational explanation.