Refractive index of any medium depends on the following parameters :
1.Temperature: At higher temperature the value of refractive index is less and vice versa
2. Wavelength of light: refractive index is directly proportional to the wavelength of light.
3. Optical density.