The velocity of light in a medium is v = c/μ. The velocity is minimum when the refractive index (μ) is maximum. Due to dispersion, the refractive index is highest for the shortest wavelength, which is violet light.