Aquarium lights should generally be off overnight. Fish benefit from darkness for normal rest behaviour, plants enter a respiration phase in the dark and excess light can encourage algae. If you enjoy a blue moonlight effect, use it only for a short viewing period before full lights-out rather than running it until morning.
More lighting hours are not free extra viewing time; they change the biology and behaviour of the aquarium.

Fish need a dark phase
Most aquarium fish follow daily activity and rest patterns. Permanent illumination removes the environmental cue that tells them night has arrived.
Provide shaded shelter as well as a proper lights-out period.
Plants do not need 24-hour light
Plants cannot use unlimited light without matching carbon dioxide and nutrients, and they continue respiration at night. Continuous illumination often benefits algae more than the plants.
A timer is the simplest fix.
Algae exploits excessive photoperiod
Long lighting periods can increase algae when plant growth cannot use all the available light. Shorten the schedule before adding algae treatments blindly.
Keep nutrient and maintenance routines stable while assessing the change.
Blue light is still light
Blue moonlight modes look dim to us, but they still contribute photons. Use them briefly rather than assuming they are biologically invisible.
Aquarium Co-Op specifically advises against leaving blue moonlight on all night.
Set the schedule around your life
If you only see the aquarium in the evening, start the lights later in the day. You can still maintain an appropriate total photoperiod without leaving the light on from morning onward.
Frequently asked questions
Will one accidental night of light harm fish?
A single mistake is unlikely to cause major harm, but return to the normal schedule rather than making it routine.
Can lights stay on overnight for fry?
Most fry still benefit from a day-night cycle unless a specific breeding protocol calls for different lighting.
Do aquarium plants need darkness?
Yes. A normal dark period is part of their daily metabolic cycle.
Sources and further reading
This guide separates general aquarium arithmetic from fish-welfare decisions. For species-specific limits, always check the needs of the fish you intend to keep.