n = c/v
The refractive index is the ratio of the speed of light in vacuum to its speed in the medium.