The ones I have played with the solenoids were interchangeable, the only difference being the hot water one was red plastic, although the blue had better heat resistance
.
And make sure you don't have any 'helpers'
My kids thought they would help by plugging in the machine while I was ankle deep in soapy water (pump blockage). I brushed my elbow on the solenoids while getting out from behind the machine and just about got thrown through the wall.