As one of the most direct approaches to perceive the world, optical images can provide plenty of useful information for underwater applications. However, underwater images often present color deviation due to the light attenuation in the water, which reduces the efficiency and accuracy in underwater applications. To improve the color reproduction of underwater images, we proposed a method with adjusting the spectral component of the light source and the spectral response of the detector. Then, we built the experimental setup to study the color deviation of underwater images with different lamps and different cameras. The experimental results showed that, a) in terms of light source, the color deviation of an underwater image with warm light LED (Light Emitting Diode) (with the value of Δa*2+Δb*2 being 26.58) was the smallest compared with other lamps, b) in terms of detectors, the color deviation of images with the 3×CMOS RGB camera (a novel underwater camera with three CMOS sensors developed for suppressing the color deviation in our team) (with the value of Δa*2+Δb*2 being 25.25) was the smallest compared with other cameras. The experimental result (i.e., the result of color improvement between different lamps or between different cameras) verified our assumption that the underwater image color could be improved by adjusting the spectral component of the light source and the spectral response of the detector. Differing from the color improvement method with image processing, this color-improvement method was based on hardware, which had advantages, including more image information being retained and less-time being consumed.