UV rays can penetrate clouds, but tanning on rainy days will be much less effective because some are scattered. As for cold days, you can also get a tan even through clouds.