A bistable electromagnetic actuator including: a tube; a stator arranged outside of the tube; and a rotor mounted in the tube so as to be displaceable along the longitudinal axis, the rotor at least partially comprises one or more of a paramagnetic and a ferromagnetic material and can be reversibly displaced between a first position and a second position by applying an electromagnetic field; wherein the stator comprises two o ring permanent magnets, a coil for producing the electromagnetic field, and a back-iron element having two stator pole shoes; and the two ring permanent magnets comprise hard magnetic particles that are embedded in a plastic matrix.