How is the refractive index of a medium related to the speed of light in it and in vacuum or air?
Denser medium has a higher refractive index and therefore the speed of light in such a medium is lower in comparison to the speed of light in a medium which has a lower refractive index.