As frequency of visible light increases refractive index increases.With the increase of refractive index critical angle decreases.So that light having frequency greater than green will get total internal reflection and the light having frequency less than green will pass to air