In this work, the impact of a three-dimensional viscoelastic droplet on an inclined hydrophilic surface is investigated by means of direct numerical simulations. The volume-of-fluid method is adopted to capture the interface, and the Oldroyd-B model is used to describe the rheological behavior of the viscoelastic droplet. The effects of the Weissenberg number (Wi) and the Weber number (We) on the impacting and spreading processes are studied, including the viscoelastic droplet shape, velocity, energy transformation, and stress distribution. Our results are in good agreement with the experimental data in the literature. In particular, the elastic force markedly influences droplet deformation at intermediate Wi values, although this trend diminishes at higher or lower Wi values. With increasing We, the impacting viscoelastic droplet reaches its maximum deformation more rapidly, while the nonmonotonic peak of kinetic energy indicates that the droplet elasticity plays significant role at moderate We. Additionally, the inclination of the surface has a pronounced effect on the droplet spreading process, and the elongated viscoelastic droplet at larger inclination angle is likely to experience a stronger oscillation. According to further analyses, We exerts a modest influence on the change rates of the droplet potential energy and spreading length in the flow direction. However, a larger inclination angle reduces stress concentration and accelerates the change rates. Due to the oscillation dynamics, Wi exhibits a non-monotonic effect on the spreading process and induces a monotonous increase in potential energy of viscoelastic droplets. The above analyses provide insights into the impact mechanism of droplets on an inclined hydrophilic wall and, therefore, will guide the applications in the future.