The present invention aims to provide a resin composition which is a melt mixture of a near-
infrared absorbing dye and a resin, and which can produce a molded body having good optical properties even when melt-molded. The present invention is a resin composition characterized by being a melt mixture of a resin and a
cyanine dye and / or a squarylium
cyanine dye, the
cyanine dye being a compound containing a cation composed of a cyanine structure and an anion composed of
tetra(pentafluorophenyl)borate, the cation composed of a cyanine structure having a specific structure or having a specific structure at at least one terminal of a polymethine skeleton, the squarylium cyanine dye being a compound having the following structure: at least one of the structures attached to the squarylium site contains a
nitrogen-containing
conjugated system composed of a five-membered ring and a six-membered ring; or, at least one of the structures attached to the squarylium site contains a
nitrogen-containing
conjugated system composed of a five-membered ring and a six-membered ring via one conjugated carbon.