We report on 2D numerical simulations of spectral photoresponse characteristic for two-color HgCdTe infrared photovoltaic detector. Effects of thickness of absorption layer and doping profiles on the photoresponse, quantum efficiency and crosstalk have been investigated. Optimal thickness of absorption layers and doping profiles are numerically calculated.