I'm not sure what platform you are on, but on osx I use iTerm.
Under Profiles > Colors there is a slider for Contrast. Dragging that to High will fix the problem at night [1]. I just have a different profile set for those late-night coding sessions with flux.
[1] - http://imgur.com/K5dZaMn