A novel anionic heptamethine cyanine (HMC) dye with two trifluoromethyl groups that selectively absorb near-infrared light is synthesized. When contrasted with previously studied anionic HMC dyes with substituents such as methyl, phenyl, and pentafluorophenyl groups, the trifluoromethylated dye displays a red-shifted maximum absorption wavelength (for instance, 948 nm in CH2Cl2) along with enhanced photostability. Furthermore, HMC dyes with broad absorption in the near-infrared region are synthesized by combining a trifluoromethylated anionic HMC dye with a cationic HMC dye as a counterion.