On the basis of the OMFIT integrated simulation platform and the parameters of the HL-2M device, a hybrid scenario with a typical safety factor q profile is simulated using the joint injection method of neutral beam and electron cyclotron wave with a normalized toroidal beta (βN) of 2.39. At the same time, by analyzing the effect of impurity concentration (Zeff) and pedestal density (ne,ped) on confinement, a higher parameters hybrid scenario is obtained, with βN reaching 3.118. The research results indicate that the turbulent stabilization effect caused by Zeff gradually decreases from strong to weak with the increase of Zeff, whereas the radiation power loss increases linearly as Zeff increases. Consequently, there exists an optimal Zeff value for optimal confinement. In addition, it is found that the optimal Zeff value decreases with the increase of ne,ped. The research results are crucial for the HL-2M device to accomplish the 1 MA advanced scenario discharge target, and they serve as a reference for future impurity seeding experiments.