Crossing matrices for SU(2) and SU(3)