It is inversely proportional to speed of light. Light has more speed in optically rarer medium. Speed decreases in optimally denser medium