An octopus has three hearts. Two of them, called branchial hearts, push blood through the gills, where it picks up oxygen. The third, the systemic heart, pumps that oxygen-rich blood around the rest of the body.
Why is its blood blue?
Our blood is red because it carries oxygen using iron-based haemoglobin. Octopus blood uses haemocyanin, which contains copper instead. When copper binds with oxygen it turns blue, so octopus blood is blue.
A strange side effect
The systemic heart actually slows down or pauses while an octopus swims. That is one reason octopuses tend to crawl rather than swim: swimming tires them out quickly.