We present and demonstrate a formalism by which three-dimensional (3D) Bragg x-ray coherent diffraction imaging (BCDI) can be implemented without moving the sample by scanning the energy of the incident x-ray beam. This capability is made possible by introducing a 3D Fourier transform that accounts for x-ray wavelength variability. We demonstrate the approach by inverting coherent Bragg diffraction patterns from a gold nanocrystal measured with an x-ray energy scan. Variable-wavelength BCDI will expand the breadth of feasible in situ 3D strain imaging experiments towards more diverse materials environments, especially where sample manipulation is difficult.