BackgroundDifferent metabolic compounds give pepper leaves and fruits their diverse colors. Anthocyanin accumulation is the main cause of the purple color of pepper leaves. The light environment is a critical factor affecting anthocyanin biosynthesis. It is essential that we understand how to use light to regulate anthocyanin biosynthesis in plants.ResultPepper leaves were significantly blue–purple only in continuous blue light or white light (with a blue light component) irradiation treatments, and the anthocyanin content of pepper leaves increased significantly after continuous blue light irradiation. This green-to-purple phenotype change in pepper leaves was due to the expression of different genes. We found that the anthocyanin synthesis precursor-related genes PAL and 4CL, as well as the structural genes F3H, DFR, ANS, BZ1, and F3’5’H in the anthocyanin synthesis pathway, had high expression under continuous blue light irradiation. Similarly, the expression of transcription factors MYB1R1-like, MYB48, MYB4-like isoform X1, bHLH143-like, and bHLH92-like isoform X3, and circadian rhythm-related genes LHY and COP1, were significantly increased after continuous blue light irradiation. A correlation network analysis revealed that these transcription factors and circadian rhythm-related genes were positively correlated with structural genes in the anthocyanin synthesis pathway. Metabolomic analysis showed that delphinidin-3-O-glucoside and delphinidin-3-O-rutinoside were significantly higher under continuous blue light irradiation relative to other light treatments. We selected 12 genes involved in anthocyanin synthesis in pepper leaves for qRT-PCR analysis, and the accuracy of the RNA-seq results was confirmed.ConclusionsIn this study, we found that blue light and 24-hour irradiation together induced the expression of key genes and the accumulation of metabolites in the anthocyanin synthesis pathway, thus promoting anthocyanin biosynthesis in pepper leaves. These results provide a basis for future study of the mechanisms of light quality and photoperiod in anthocyanin synthesis and metabolism, and our study may serve as a valuable reference for screening light ratios that regulate anthocyanin biosynthesis in plants.