Chromatomyia primulae is a species of leaf-mining fly in the family Agromyzidae, of the order Diptera.
The fly was described by the French physician and entomologist, Jean-Baptiste Robineau-Desvoidy in 1851 and is found in Europe.
Mines are white, long and narrow, with the frass in widely spaced black lumps.
Pupation is within the mine, next to a vein with the anterior spiracles projecting through the epidermis.
This article related to members of the muscomorph flies superfamily Opomyzoidea is a stub.