https://www.longdom.org/open-access/the-skin-melanin-an-inhi...
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4272394/
To give balance to reinforce that i'm purely speaking from a scientific-rational viewpoint, in Australia the government is trying to discourage people from being in the sun at all due to Australia (primarily european ethnic) having one of the highest rates of skin cancer in the world, due to also not being suited to their natural environment.
https://www.cancer.org.au/cancer-information/types-of-cancer... "the incidence of skin cancer is one of the highest in the world, two to three times the rates in Canada, the US and the UK."
The USA approach is quite different though - pills for everyone! Buy your vitamin D plastic chips and watch the stock market go up!