The study of the S1(1A1)<--S0(1A1) transition of benzo[g,h,i]perylene (BghiP, C22H12) in supersonic jets and solid rare gas matrices is reported. In the jet-cooled spectrum, the origin band position is located at 25,027.1+/-0.2 cm-1, the assignment being supported by the analysis of vibrational shifts and rotational band contours. Except for the origin band, which is weak, all bands are attributed to the fundamental excitation of nontotally symmetric b1 vibrational modes of S1. The intensity pattern is interpreted as a consequence of the weak oscillator strength of the electronic transition combined with intensity-borrowing through vibronic interaction between the S1(1A1) and S2(1B1) states. The spectra of the S1(1A1)<--S0(1A1) and S2(1B1)<--S0(1A1) transitions have also been measured for BghiP in solid neon and argon matrices. The comparison of the redshifts determined for either transition reveals that the polarizability of BghiP is larger in its S2 than in its S1 state. Bandwidths of 2.7 cm-1 measured in supersonic jets, which provide conditions relevant for astrophysics, are similar to those of most diffuse interstellar bands. The electronic transitions of BghiP are found to lie outside the ranges covered by present databases. From the comparison between experimental spectra and theoretical computations, it is concluded that the accuracy of empirical and ab initio approaches in predicting electronic energies is still not sufficient to identify astrophysically interesting candidates for spectroscopic laboratory studies.