Why are X, Y and Z axes represented by Red, Green, and Blue?

It is pretty standard that 3d axis, XYZ, is represented as red green blue, respectively. Why is this and who first proposed the colors in that configuration?

enter image description here