I am painting the room in our basement that contains the electrical panel. I think it would look a lot better to paint the panel the same color as the wall, instead of the plain grey-green metal. I've heard that it's against code (USA) to paint the electrical panels, but I wasn't sure why. It's my own house and we don't rent it out, so I'm not too worried about the code violation.
Is there any reason why I shouldn't paint the electrical panel, and are there any problems I should watch for when painting it? The panel is brand new with no rust, so I will likely need to roughen the surface with sandpaper first.