In this study, 4-((2R, 3S)-2, 3, 4-trihydroxybutoxy) phthalonitrile was synthesized and characterized as starting material. This new starting material reacts with cobalt and copper metal salts to obtain metallophthalocyanine complexes. The electronic absorption of cobalt and copper phthalocyanine compounds in different concentrations of THF was investigated. In addition, the solubility and absorption of the compounds in different solvents were investigated. Density functional theory was also performed to support the relevant experimental results of the synthesized copper and cobalt center atomic compound. The photovoltaic performance of compounds was measured as current density-voltage (J-V).