According to the doppler effect,
The value of the frequency of light observed by the observer on the earth when the star is moving towards the earth is defined by,
where u is the velocity of the star with respect to earth.
As the wavelength and the frequency of light are related as,
By using this relation, the doppler effect in terms of wavelength become,
As c+u is greater than c,
This shows that wavelength of the light observed by the observer will be less than the wavelength of green light.
Thus, the light of the star observed by the observer on the earth will be blue shifted.
Hence, the green star approacking towards the earth will appeared to be of blue colour.