Black and red wires indicate "hot" wires, or wires that actively carry electricity. White wires are neutral, and they soak up excess electricity in order to prevent shorts and sparks and other dangers that occur when too much electricity runs through a circuit. \
Blue wires are also hot wires that carry electricity, usually to light fixtures or wall switches. Electrical wires are color coded for a reason and have their own functions. \