There is a dependency relationship between the refractive index of each substance and the radiation wavelength.
The refractive index in a given medium is inversely proportional to the wavelength of a color.
For example:
The rays of the red color have a wavelength greater than the rays of the blue color, therefore they have a lower refractive index and consequently a light scattering less than the blue.