In the vicinity of the anticrossing region of the spin sublevels, the effective magnetic moment of the electron spin is reduced, resulting in an increase in the lifetime of the spin coherence. Based on this phenomenon, the modified electron spin echo protocol is proposed to extend the coherence relaxation time. It includes the Hahn echo sequence with the additional detuning of the magnetic field applied during the intervals between two pulses and between the refocusing pulse and the echo. The simplest system with anticrossing sublevels is an ion whose electron spin is strongly coupled to its own nucleus. To realize the proposed protocol, a narrow anticrossing region is required. The promising candidate to realize the proposed protocol is the crystal [Ho(W5O18)2]9−, whose spin transitions have been studied in the recent paper (K. Kundu, et al., Commun Phys. 6 (2023) 38). Near the clock transition, the spin evolution of the electron-nuclear spin system is described by a fictitious spin ½, but with the magnetic properties dictated by the properties of the ion. The numerical study shows that the spin coherence is not destroyed by the magnetic field detuning, but it reduces the phase relaxation. In addition, the detuning result in a phase shift of the coherence, which can be used differentiate between the target signal and the noise.