The text of a "Book of the Dead" was written in both black and red ink, regardless of whether it was in hieroglyphic or hieratic script. Most of the text was in black, with red ink used for the titles of spells, opening and closing sections of spells, the instructions to perform spells correctly in rituals, and also for the names of dangerous creatures such as the demon Apep. The black ink used was based on carbon, and the red ink on ochre, in both cases mixed with water.