The sky appears blue due to a phenomenon called Rayleigh scattering. When sunlight enters the Earth’s atmosphere, it interacts with gas molecules and tiny particles.
Shorter wavelengths of light, such as blue and violet, are scattered much more strongly than longer wavelengths like red and yellow. Since our eyes are more sensitive to blue light and some violet light is absorbed by the upper atmosphere, the scattered blue light dominates the color we see.
This scattering causes the sky to appear predominantly blue during the daytime.