The blue wire is the hot wire for the. Black wire is for the fan.

Where To Connect The Red Wire To A Light Switch The Silicon
Red black and white wires ceiling fan. Typically a ceiling fan is wired so the fan motor has power all the time by the black wire and the light of the ceiling fan is controlled by the wall switch through the red wire. Black white red and bare. When there is a separate red and black wire in the ceiling fan box this usually means that one of the wires is controlled by a wall switch. The other has 4 wires. There should be a white copper or green and black wire coming out of the ceilings electrical box. Blue wire is for the light if light is included with the fan.
The black wire from the ceiling fan is the hot wire that runs the motor and turns the fan blades. Likewise twist all of the white wires together. Red wire is sometimes included and acts as a conductor to carry power to the light kit. Being the main hot wire the primary function of the black wire is to provide current to the fans motor. There is a green ground wire on the ceiling fan mount plate. Twist all the white wires in the box together and cap them.
Green wire is for the ground. The white wire of the ceiling fan is the main neutral for both the light fixture and the fan motor. Twist the black wire from the ceiling fan kit together with the black wire from the electrical box and connect the exposed ends with a wire nut. Connect the red wire from the fan to the other terminal on the fan switch and the black wire to the light switch. Make a pigtail of the ground wire using two 6 inch lengths of bare wire and connect one ground wire to the fan switch and one to the light switch. In the ceiling are 2 sets wires one has 3 wires.
Now coming out of the fan are 3 wires and the green ground. White wire is neutral. The white wire is your neutral wire the copper wire is the grounded wire and the black wire powers the fan. Some setups will also have a blue wire which powers the lights on your fan. If you had a red wire coming from your ceiling it is hooked up to your wall switch. During installation of the ceiling fan this white wire should be attached to the other neutral wire of the house wiring.
The wires are black blackwhite and white. The white wire is neutral and completes the fan circuit. Black white and bare.