We study the long-wavelength limit for an arbitrary photonic crystal (PC) o
f 2D periodicity. Light propagation is not restricted to the plane of perio
dicity. We proved that 2D PC's are uniaxial or biaxial and derived compact,
explicit formulas for the effective ("principal") dielectric constants; th
ese are plotted for silicon-air composites. This could facilitate the custo
m design of optical components for diverse spectral regions and application
s. Our method of "homogenization" is not limited to optical properties, but
is also valid for electrostatics, magnetostatics, de conductivity, thermal
conductivity, etc. Thus our results are applicable to inhomogeneous media
where exact, explicit formulas are scarce. Our numerical method yields resu
lts with unprecedented accuracy, even for very large dielectric contrasts a
nd filling fractions.