To address the challenges of low-light images, such as low brightness, poor contrast, and high noise, a network model based on deep learning and Retinex theory is proposed. The model consists of three modules: image decomposition, illumination enhancement, and color restoration. In the image decomposition module, dilated convolutions and residual connections are employed to mitigate the issue of detail loss during the decomposition process. The illumination enhancement module utilizes a set of mapping curves to enhance the illumination map. The color restoration module employs a weighted fusion of a 3D lookup table (3DLUT) to mitigate color distortion in the images. The experimental results demonstrate that the proposed algorithm effectively improves the brightness and contrast of low-light images while addressing the issues of detail loss and color distortion. Compared to other algorithms, it achieves better subjective and objective evaluations.