Cephalopod ink is a dark pigment released into water by most species of cephalopod, usually as an escape mechanism. All cephalopods, with the exception of the Nautilidae and the Cirrina (deep-sea octopuses), are able to release ink.
The ink is released from the ink sacs (located between the gills) and is dispersed more widely when its release is accompanied by a jet of water from the siphon. Its dark colour is caused by its main constituent, melanin. Each species of cephalopod produces slightly differently coloured inks; generally, octopuses produce black ink, squid ink is blue-black, and cuttlefish ink is a shade of brown.
A number of other aquatic molluscs have similar responses to attack, including the gastropod clade known as sea hares.
I was much interested, on several occasions, by watching the habits of an Octopus or cuttle-fish ... they darted tail first, with the rapidity of an arrow, from one side of the pool to the other, at the same instant discolouring the water with a dark chestnut-brown ink.
Two distinct behaviours have been observed in inking cephalopods. The first is the release of large amounts of ink into the water by the cephalopod in order to create a dark, diffuse cloud (much like a smoke screen) that can obscure the predator's view, allowing the cephalopod to make a rapid retreat by jetting away.
The second response to a predator is to release pseudomorphs ("false bodies"), smaller clouds of ink with a greater mucus content, which allows them to hold their shape for longer. These are expelled slightly away from the cephalopod in question, which will often release several pseudomorphs and change colour () in conjunction with these releases. The pseudomorphs are roughly the same volume as and look similar to the cephalopod that released them, and many predators have been observed attacking them mistakenly, allowing the cephalopod to escape (this behaviour is often referred to as the "blanch-ink-jet manoeuvre").
Furthermore, green turtle (Chelonia mydas) hatchlings that have been observed mistakenly attacking pseudomorphs released by Octopus bocki have subsequently ignored conspecific octopuses.