Answer: Biliverdin.
Step 1: The question asks for the pigment that gives meconium its dark greenish-black colour, not the name of the stool itself, so meconium is not the right pick.
Step 2: Meconium is made of swallowed amniotic fluid, desquamated fetal cells, lanugo, scalp hair, vernix, intestinal secretions and bile.
Step 3: The characteristic dark green colour comes from bile pigments, mainly biliverdin, which is green. Bilirubin is yellow-orange and urochrome colours urine, not meconium.
Step 4: So the pigment responsible is biliverdin. Ref: Williams Obstetrics, 24e, p.141.