Graba, the son of a Danish cavalry colonel, grew up in Itzehoe, Duchy of Holstein, within Schleswig-Holstein in north Germany, which was part of the Danish Kingdom at that time, until 1864. He was educated at the Katharineum of Lübeck, then went on to study law at Kiel University from 1817. After this, he worked as a lawyer in lower courts.
