Yes, the hardware can be painted. I did some brass light fixtures with a metallic spray paint. (Rustolium, oiled bronze) I liked the results enough to paint some metal towel hooks & bars. (Impervo, hammered black) In both applications, I lightly sanded the metal before painting. Did this 3ish years ago... the paint has not chipped, scratched or come off.
I've thought about painting the brass hardware in our LY. The hinges are my concern....painted hinges...I don't know about that.