Crystalline silicon is an attractive photovoltaic material because of its natural abundance, accumulated materials and process knowledge, and its appropriate band gap. To reduce cost, thin films of crystalline silicon can be used. This reduces the amount of material needed and allows material with shorter carrier diffusion lengths to be used. However, the indirect band gap of silicon requires that a light trapping approach be used to maximize optical absorption. Here, a photonic crystal (PC) based approach is used to maximize solar light harvesting in a 400 nm-thick silicon layer by tuning the coupling strength of incident radiation to quasiguided modes over a broad spectral range. The structure consists of a double layer PC with the upper layer having holes which have a smaller radius compared to the holes in the lower layer. We show that the spectrally averaged fraction of photons absorbed is increased 8-fold compared to a planar cell with equivalent volume of active material. This results in an enhancement of maximum achievable photocurrent density from 7.1 mA/cm(2) for an unstructured film to 21.8 mA/cm(2) for a film structured as the double layer photonic crystal. This photocurrent density value approaches the limit of 26.5 mA/cm(2), obtained using the Yablonovitch light trapping limit for the same volume of active material.