The big picture
Every defect here is one of two kinds. The direction of flow tells you whether it is a blue baby.
◾ Left → Right · PINK
VSD, ASD, PDA
Oxygen-rich blood goes back through the lungs again. Extra work for the lungs and heart, but no cyanosis.
◾ Right → Left · BLUE
Tetralogy of Fallot
Oxygen-poor blood skips the lungs and goes to the body → cyanosis (a blue baby).
The one rule that ties it together: follow the blood at the hole. If red (oxygen-rich) blood is pushed to the right side, it just goes to the lungs → pink. If blue (oxygen-poor) blood crosses to the left side or the aorta, it goes to the body → blue.