A protein in red blood cells that carries oxygen.