Taillights are not required to be illuminated after dark.

A vehicle's headlights must be on from sunset to sunrise. Vehicles must also have two red taillights visible for 500 feet from behind. Only one taillight is needed for mopeds and motorcycles.
DMV Writen Test