E = hf, and h is the Planck's constant. When larger frequency is needed, more energy will also be needed. Since the blue light has the higher frequency, it would be the level X to Y's transition which is the one that has the highest energy difference.
I am hoping that this answer has satisfied your query and it will be able to help you in your endeavor, and if you would like, feel free to ask another question.