Overcast days are the worst offenders for sunburn because the melanin impaired don’t feel the heat of the sun to remind them they are going to roast.
The right thickness marine layer can make the sky seem dim but it's like one massive UV diffuser from horizon to horizon.