Color Flow Imaging is a form of pulsed wave (PW) Doppler and follows the same principles. In PW Doppler, when the frequency shift of the blood flow exceeds the Nyquist limit, the display shows an aliased signal. The same thing happens in color flow imaging, where aliasing appears as color reversal.
As illustrated on the color bar below, when the velocity of blood flow moving toward the transducer causes aliasing the color changes from yellow to blue. When the velocity of blood flow moving away from the transducer causes aliasing, the color changes from blue to yellow.