An earthquake of magnitude 2.7 on the Richter scale was recorded in Himachal Pradesh on Wednesday. The quake was reported at 5.04 pm with its epicentre at a depth of 28 km east-southeast of Dharamshala, according to the National Centre of Seismology (NCS).