Keying and chroma key
Keying generates a matte automatically from a property of the image. Chroma keying makes a colour range transparent so another image shows through (Wikipedia, "Chroma key"). Blue and green are used because they are "considered to be the furthest away from skin tone." Green became the TV default partly because cameras record more detail in the green channel, which gives a cleaner key.
Chroma key