They are a rubber gasket and as per the tail light, front indicator and windscreen to body gaskets they should remain their natural black. If they have been painted someone has just been lazy when painting and not taken the rims off. As a side note the original rootes gaskets were muich thinner than the repros we have now, they allowed the headlight rims to mount closer to the body and gave less of a gap line.