@destroythemcat
When you change from one medium to another, the frequency is constant. The speed can increase or decrease (depending on the index of refraction).
If the speed increases, wavelength increases.
If the speed decreases, wavelength decreases.