Melanin, the chemical in our our skin responsible for a tan, is also an agent that increases the ability of our cells to absorb sunlight. So the obvious way is to just get more tan.
It might absorb sunlight,but apparently it does nothing for vit.D. There are many articles out there that speak of black people being more prone for vit.D deficiency because of the high rates of melanin in their skin...