Ideally, you should wait at least 8-12 hours after getting a spray tan before going into the ocean. This allows the dihydroxyacetone (DHA) in the tanning solution to fully develop and bind to your skin. Swimming too soon may hinder the tanning process and result in an uneven or lighter tan.