I did that once and it killed the queen (less than 24 hours). If I do it again, I will put the queen back in the hive before the paint dries. I have seen the bees clean wet paint off the back of a queen in about 20 seconds. You would have to recatch and remark her at a later date, but she would be alive.