Origin of the name Rex

From Latin rex "king". It has been used as a given name since the 19th century.