The subject-matter of the invention is a dyeing composition comprising at least one aminopyrazolopyridine base, one coupler and one specific surfactant chosen from (C8-C30) alkyl ether carboxylic acids and their salts, (C12-C30) alkyl polyglucosides and mono- or polyglycerolated surface-active agents. Another subject-matter of the invention is a dyeing method employing this composition, in which the abovementioned dyeing composition is applied to the fibres in the presence of an oxidizing agent for a time sufficient to develop the desired colouring. Finally, a subject-matter of the invention is a multicompartment device. The composition of the present invention makes it possible in particular to obtain a colouring with varied, powerful, attractive and not very selective shades which is highly resistant to the various attacks to which hair may be subjected.