A quick illustration of the 3D Rotations in After Effects.
Red is the color of the X rotation arrow, so I used Red for the rectangle that rotates on the X axis.
Breen is the color of the Y rotation arrow, so I used Green for the rectangle that rotates on the Y axis.
Blue is the color of thez rotation arrow, so I used Blue for the rectangle that rotates on the Z axis.