The refractive index of water is [tex]n=1.33[/tex]. This means that the speed of the light in the water is:
[tex]v= \frac{c}{n}= \frac{3 \cdot 10^8 m/s}{1.33 }=2.26 \cdot 10^8 m/s [/tex]
The relationship between frequency f and wavelength [tex]\lambda[/tex] of a wave is given by:
[tex]\lambda= \frac{v}{f} [/tex]
where v is the speed of the wave in the medium. The frequency of the light does not change when it moves from one medium to the other one, so we can compute the ratio between the wavelength of the light in water [tex]\lambda_w[/tex] to that in air [tex]\lambda[/tex] as
[tex] \frac{\lambda_w}{\lambda}= \frac{ \frac{v}{f} }{ \frac{c}{f} } = \frac{v}{c} [/tex]
where v is the speed of light in water and c is the speed of light in air. Re-arranging this formula and by using [tex]\lambda=400 nm[/tex], we find
[tex]\lambda_w = \lambda \frac{v}{c}=(400 nm) \frac{2.26 \cdot 10^8 m/s}{3 \cdot 10^8 m/s}=301 nm [/tex]
which is the wavelength of light in water.