Why do black and Asian people have black hair, if black makes you warmer?

Many black people and Asians lives in warm countries. So I'm wondering why they do have so dark hair. I've heard dark clothing makes you warmer. So I assume same things applies to your hair. It would make more sense they were blonde, so they doesn't get too warm and that Scandinavians had darker hair. This hair thing seems illogical. The skin thing is much more logical. Pigments protecting the skin etc.
Why do black and Asian people have black hair, if black makes you warmer?
#curious


Why do black and Asian people have black hair, if black makes you warmer?
Post Opinion