Pipevine Swallowtail (Battus philenor)
Larvae can be either dark or maroon in color.
Larva pupating (note silk 'girdle' attached to stem).