THe more melanin you have, the more UV your skin is protected from.
From what Ive been reading, UVB causes skin cancer, while UVA penetrates deeper into the skin and breaks collagen. So UVA will make you age rapidly.
With all my googling, I still don’t know whether melanin actually protects skin from UVA.