The speed of light ($v$), frequency ($f$), and wavelength ($\lambda$) are related by the equation $v = f\lambda$. When light enters a denser medium, its speed decreases. Since frequency ($f$) is constant, the wavelength ($\lambda = v/f$) must decrease proportionally.