I would like to paint the cover and door of my flush mount load center to match the wall color more closely. The manufacturer does offer a white in addition to the standard grey cover, but it is hard to find and ridiculously overprice.
Only the outside would be painted, so all labels on the inside would not get any overspray or anything else on them and would remain intact. I would also of course first remove the hinges and locking mechanism to ensure their operation wouldn't be affected.
Is this OK to do per NEC 2017 and with typical load center UL listings? Let me know if specifics are needed to answer.