The N = 28 shell gap in sulfur, argon, calcium and titanium isotopes is investigated in the framework of relativistic continuum Hartree-Bogoliubov (RCHB) theory. The evolutions of neutron shell gap, separation energy, single particle energy and pairing energy are analyzed, and it is found that N = 28 shell gap is quenched in sulfur isotopes but persists in argon, calcium and titanium isotopes. The evolution of N = 28 shell gap in N = 28 isotonic chain is discussed, and the erosion of N = 28 shell gap is understood with the evolution of potential with proton number.