We consider the magnetic Robin Laplacian with a negative boundary parameter. Among a certain class of domains, we prove that the disk maximizes the ground state energy under the fixed perimeter constraint provided that the magnetic field is of moderate strength. This class of domains includes, in particular, all domains that are contained upon translations in the disk of the same perimeter and all centrally symmetric domains.