Here's a breakdown:
In North America:
* Black is the standard color for a line wire.
* Red is often used for a second line wire in a 240-volt circuit.
* Blue is used in some newer installations for the neutral wire.
In Europe and other parts of the world:
* Brown is the standard color for a line wire.
* Blue is the standard color for a neutral wire.
* Yellow/Green is the standard color for the ground wire.
Important Note:
* Always confirm the wiring colors with the specific electrical code for your location.
* Never assume the color of a wire based on its appearance alone. Use a voltage tester to verify the function of each wire before working on electrical systems.
By following these safety precautions, you can ensure your electrical work is done correctly and safely.