Refractive index is defined as the ratio of speed of light in medium 1 to the speed of light in medium 2 and is represented as n21 and is read as refractive index of medium 2 with respect to medium 1. n21 = speed of light in medium 1/speed of light in medium 2.