How to NOT get dark this summer?!!

I think sunblock helps prevent the suns rays from damaging your skin, and essentially arent the suns rays what makes you darker?