Yes it depends on wave lenghtlength it is inversely proptionalproportional to it. Let $u$ denote the refractive index, then:
u(refrac index ) = c/v$$u = c/v $$ c=where $c$ in the speed of light in vac v=speedvacuum and $v$ is the speed in meda medium. And: And v=fl$$v=fl$$ fwhere $f$ denotes the frequency l wave length So and $l$ the wavelength. So we get: U1 /U2 = l2/l1$$ \frac{U_1}{U_2} = \frac{l_2}{l_1}$$