The refractive index of a medium changes with the wavelength of light, primarily due to the speed of light varying when transitioning from a vacuum to another medium. When light enters a material, its frequency remains constant, which necessitates a change in wavelength, calculated as λ/n, where n is the refractive index. In many common materials, the refractive index increases as the wavelength decreases, meaning blue light has a higher index than red light. Some materials exhibit anomalous dispersion, where the refractive index increases with longer wavelengths. Understanding these principles is crucial for applications involving light dispersion and attenuation in various materials.