beeliner, the C–E–G triad is always a C major chord. It becomes a "different" chord in different keys. It is the Tonic chord in the key of C, the Subdominant in the key of G, and the Dominant in the key of F. But it is always a C major chord.
Don Firth