Those are pretty clean to be honest. These resistors were never made to look pretty. The "dirtiest" ones I would say are older and were never white to start with. These days they get made nice and white so I'd not worry too much about calling them dirty.
Yeah, the old ones looked like cement.
If you wash them by complete immersion, either in a ultrasonic cleaner or more traditional ways, it is a good idea to cook them in a normal domestic oven, which will dry them out.
Many years ago, we washed a unglazed porcelain insulator from a TV transmitter, then soaked it in alcohol to hasten its drying.
Unfortunately, even though it looked dry, when we turned the Tx on, it went "bang" & shut down, so in the end, we had to cook the insulator in the lunchroom oven.
We learned just how porous unglazed porcelain was, but I doubt that the ceramic coating on resistors would retain as much fluid.