Acacia melanoxylon is highly valued for its commercial applications, with the heartwood exhibiting a range of colors from dark to light among its various clones. The underlying mechanisms contributing to this color variation, however, have not been fully elucidated. In an effort to understand the factors that influence the development of dark heartwood, a comparative analysis was conducted on the microstructure, substance composition, differential gene expression, and metabolite profiles in the sapwood (SW), transition zone (TZ), and heartwood (HW) of two distinct clones, SR14 and SR25. A microscopic examination revealed that heartwood color variations are associated with an increased substance content within the ray parenchyma cells. A substance analysis indicated that the levels of starches, sugars, and lignin were more abundant in SP compared to HW, while the concentrations of phenols, flavonoids, and terpenoids were found to be higher in HW than in SP. Notably, the dark heartwood of the SR25 clone exhibited greater quantities of phenols and flavonoids compared to the SR14 clone, suggesting that these compounds are pivotal to the color distinction of the heartwood. An integrated analysis of transcriptome and metabolomics data uncovered a significant accumulation of sinapyl alcohol, sinapoyl aldehyde, hesperetin, 2', 3, 4, 4', 6'-peptahydroxychalcone 4'-O-glucoside, homoeriodictyol, and (2S)-liquiritigenin in the heartwood of SR25, which correlates with the up-regulated expression of CCRs (evm.TU.Chr3.1751, evm.TU.Chr4.654_667, evm.TU.Chr4.675, evm.TU.Chr4.699, and evm.TU.Chr4.704), COMTs (evm.TU.Chr13.3082, evm.TU.Chr13.3086, and evm.TU.Chr7.1411), CADs (evm.TU.Chr10.2175, evm.TU.Chr1.3453, and evm.TU.Chr8.1600), and HCTs (evm.TU.Chr4.1122, evm.TU.Chr4.1123, evm.TU.Chr8.1758, and evm.TU.Chr9.2960) in the TZ of A. melanoxylon. Furthermore, a marked differential expression of transcription factors (TFs), including MYBs, AP2/ERFs, bHLHs, bZIPs, C2H2s, and WRKYs, were observed to be closely linked to the phenols and flavonoids metabolites, highlighting the potential role of multiple TFs in regulating the biosynthesis of these metabolites and, consequently, influencing the color variation in the heartwood. This study facilitates molecular breeding for the accumulation of metabolites influencing the heartwood color in A. melanoxylon, and offers new insights into the molecular mechanisms underlying heartwood formation in woody plants.