Can you paint uPVC window frames?
You can, with the right primer and paint, but it is worth asking why you want to. uPVC frames need no painting and no oiling, and that is the point of the material. Painting one puts a coating on a surface designed to weather without one.
The practical problem is adhesion. uPVC is smooth and non-porous, and ordinary exterior paint has nothing to key into, so it flakes at the edges within a season or two. Paints made for plastic, or an adhesion primer underneath a normal topcoat, are what make the difference.
There is a second issue people meet later. Painting a uPVC frame can affect the manufacturer's warranty, and it makes the frame harder to recycle at end of life. Check the terms that came with your windows before you open a tin, and ask the manufacturer if you are not sure.
A dark colour on a south-facing uPVC frame is the case to think hardest about. Dark paint absorbs more heat than the white surface underneath was specified for, and heat is what moves a plastic frame. Lighter shades are the safer choice.