Vitamin B6 can also influence serotonin and dopamine levels, which can impact your sleep if taken too late, Keatley says.