Solution:
Concept: Refractive index and colour: in glass or water, light of shorter wavelength travels more slowly, so the refractive index is larger for violet and blue light and smallest for red light (order: red < orange < yellow < green < blue < indigo < violet).
Step 1 — Link the displacement to the bending.
For a block of given thickness and a given angle of incidence, the lateral displacement is larger when the ray bends more, that is, when the refractive index is larger.
Step 2 — Compare the colours.
Of red, green and blue, blue has the shortest wavelength, so glass has the largest refractive index for blue light. Blue bends the most inside the block and is shifted the most sideways.
Watch out: The colour with the largest wavelength (red) bends LEAST and so has the smallest lateral displacement.
Therefore, maximum lateral displacement will be shown by blue colour.