The main pigment of the dormant Mycobacterium smegmatis is porphyrin.