What am I?

Of the king I am blue and of the peasant I am red. Of the frog I am cold and of the dog I am hot instead.