Context. The next generation of space-borne instruments dedicated to the direct detection of exoplanets requires unprecedented levels of wavefront control precision. Coronagraphic wavefront sensing techniques for these instruments must measure both the phase and amplitude of the optical aberrations using the scientific camera as a wavefront sensor. Aims. In this paper, we develop an extension of coronagraphic phase diversity to the estimation of the complex electric field, that is, the joint estimation of phase and amplitude. Methods. We introduced the formalism for complex coronagraphic phase diversity. We have demonstrated experimentally on the Très Haute Dynamique testbed at the Observatoire de Paris that it is possible to reconstruct ph...