The depth of the earthquake, which struck about 40 k.m. from Dharamsala near the Kangra- Chamba border at 10:04 pm, was 5 km, the meteorological office said, adding that the epicentre was located near Dhar Godoi in Kangra.