If we go by this that red flames can turn into blue flames (which happens because of difference of burning material i think) then we can also say that magma could also sort of turn into/evolve into the inner core of the earth etc. And that is a whole lot hotter than blue flames.