When light changes the medium it travels through it also changes speed. The speed in medium is given by formula:

Rearranging formual gives:

From this formula we can make conclusion that index of refraction is inversely proportional to speed of light in medium. This means that greater speed gives smaller index of refraction.