This is due to color combinations and color mixing. The color of the flame (or the hot gases rising from the fire) and the color of the trees (yellow leaves/green leaves) have combined to give the blue color.
You that white light is a combination of many colors as shown in its spectrum. Main colors are red, green and blue. These are more or less the fundamental colors.
These are used in generating other colors, in general. An object appears red, when it absorbs all other colors and reflects or emits only red color. Thus when paints of different colors are mixed, you get a different color. This is used in real life.