RP as we know it was first used as the accent in a pronunciation guide of English (thus being used "officially") in the 20th century. However it's very likely that the accent or similar ones were used by the upper class in at least parts of England before that.