Common ancestor of vertebrates had four cone opsin subfamilies to obtain color vision: ultraviolet-sensitive (SWS1), blue-sensitive (SWS2), middle wavelength sensitive (RH2) and long wavelength sensitive (LWS). Nevertheless, eutherian mammals had lost the SWS2 and RH2 opsins during their nocturnal lifestyle. Many studies had demonstrated the role of SWS1 and LWS cones in feeding, mate choice and skin pigment cell formation. However, the role of SWS2 and RH2 cones remain elusive. In the present study, we used an ideal model visual system, zebrafish, which still have the four cone opsins, to generate a SWS2 knockout zebrafish line. Through various behavioral test, we found that sws2-/- zebrafish larvae exhibited increased food intake compared with WT. Additionally, there were significantly increased the gene expression of phototransduction pathways in sws2-/- zebrafish larvae. Compared to WT, mutant zebrafish showed weaker phototaxis of red light and changed sensitivity of yellow, red and blue lights. But both mutant and WT zebrafish preferred the red light than other wavelengths of light. Taken together, we proposed that SWS2 cone is not necessary for feeding and phototaxis in zebrafish.