Sunlight is made of red, green, orange, yellow and blue light rays along with many shades of these colours, depending on the wavelength of the individual beams and energy. Some people know wavelength as electromagnetic radiation. In combination, this range of coloured light rays generates what we call "white light" or, in other words, sunlight.
However, there is a reverse connection between the wavelength of light rays and the extent of energy they hold without any complicated physics. Light beams that have relatively long wavelengths have less energy; On the contrary, short wavelengths have more power. Rays on the red end of the visible light range have lengthier wavelengths and less energy.
As for blue light, it has very short, high-energy waves. They are slightly longer and less powerful than ultraviolet waves, which are dangerous too. Health experts warn against the high energy blue light waves. Blue light is everywhere around you. The sun emits blue light so do digital devices, hence the need for blue light glasses. Human beings are exposed to more blue light than ever because of the widespread of the LED technology.