Harold Ranyard Cox (7 November 1884 – 26 March 1962) was an English first-class cricketer, banker, and an officer in both the British Army and the British Indian Army.
He was born in Amritsar, Punjab, British India, the son of S. F. Cox. He was educated in England at Sedbergh School. Following his education, Cox was commissioned into the Worcestershire Regiment as a second lieutenant in April 1902. Prior to the First World War, he moved to India to work as a banker with the Punjab Banking Company.
During the First World War, Cox served with the British Indian Army, receiving his commission as a second lieutenant in October 1915 and being promoted to lieutenant in October 1916. He was attached to the 151st Punjabi Rifles and held the acting rank of captain for part of the war.
Cox made a single appearance in first-class cricket for the Europeans cricket team against the Parsees at Poona during the 1922–23 Bombay Quadrangular Tournament. In that match, he batted twice: ending the first innings not out on 20, and scoring 13 runs in the second innings before being dismissed by Bomanji Kalapesi. As a bowler, he took two wickets in the Parsees' first innings, dismissing S. N. Gandhi and Sorabji Colah, conceding 77 runs. His career first-class statistics include 33 runs at a batting average of 33.00, and 2 wickets at a bowling average of 42.00.
Cox died in Cheltenham, Gloucestershire, England, on 26 March 1962 at the age of 77.