Usually you can repaint transformer HOUSINGS without too much of a problem. Just be wary of any heat issues you might have (remember that if its hot without paint it will be HOTTER with paint), and make sure you dont get any paint into the openings in the x-former where the leads come out.
-T