The invention relates to a color film substrate, a display panel and an electronic device. The color film substrate comprises a color resistance layer, a quantum dot material layer arranged on one side of the color resistance layer and used for emitting infrared rays when ultraviolet rays are received, and a sensor arranged on one side of the color resistance layer and used for generating an electric signal according to infrared rays reflected by a fingerprint to perform fingerprint identification. According to the color film substrate, the display panel and the electronic device provided by embodiments of the invention, a black matrix is relatively close to a finger of a user, and relative to a mode of directly emitting the infrared rays through a backlight module to irradiate the fingerprint of the user, the infrared rays can pass through relatively few film layers before the infrared rays are irradiated to the fingerprint, so that the intensity of the infrared rays irradiated on the fingerprint can be effectively ensured, the infrared rays reflected to the sensor also have relatively intensity, and the fingerprint identification precision is improved.