A chromogenic chemosensor for Hg(2+) detection in aqueous media at the nanomolar level has been developed from squaraine scaffoldings.