Chōshū Domain
Ogawa was born to a "samurai" family; his father was a retainer to the "daimyō" of Kokura Domain, in what is now Kitakyushu, Fukuoka. He studied "rangaku" under Egawa Hidetatsu and fought as a Kokura samurai against the forces of Chōshū Domain during the Bakumatsu period.