My experience is that it's safer to ride after dark, than around sunset/dusk time. Sunset/dusk maybe the golden hour for photography, but it's the death hour for cyclists.
In the winter time I would either ride home early when it's still bright, or I would sit in the office until after dark, before I ride home.