X is blue.
Y is red.
Z is white.
Since, the option 3 suggests that
Z is not blue than it could be red or white.

As option 2 is wrong as per the question's condition; therefore Y is red.
Resulting Z as White as the only option.
And hence, X is blue.