When we measure speed of light in two different media, relative refractive index of medium 2 with respect to medium 1 is defined as the ratio of speed of light in medium 1 to speed of light in medium 2.
n21= speed of light in 1st medium / speed of light in second medium