In this work, we propose a simple, sensitive and reliable assay for melamine in raw milk with dopaminestabilized silver nanoparticles (AgNPs) as a colorimetric reader. Dopamine can reduce Ag + and functionalize the produced AgNPs to form monodispersed AgNPs. The coexisting melamine in reaction solution could bind dopamine through Michael addition and Schiff base reactions, which leads to the aggregation of AgNPs and induces a colorimetric response. The one-step assay is simple, rapid and highly sensitive. The color-change is quantitatively correlated with the concentration of melamine in the range of 10 ppb to 1.26 ppm, which is below the safety limit in China (1.0 ppm) and EU (2.0 ppm). The coexisting substances including phenylalanine, DL-leucine, L-glutamate, sulfanilic acid, Mg 2+ , galactose, lysine, urea and glucose do not affect the determination of melamine. The colorimetric sensor can be used for rapid monitoring of raw milk quality.