Blueshift is observed when:
a distant luminous object travels rapidly towards an observer.
This phenomenon occurs due to the Doppler effect, where the wavelength of light is shortened (shifted towards the blue end of the spectrum) as the object moves closer to the observer.