I have two machine which share the completely same .vimrc and colorscheme. I’m working on machine Local. When I open vim in Local‘s terminal, it looks like:

The background is dark and color is contrasting.
Then I log in machine Remote through ssh on Local, and open Remote‘s vim in screen. And then I see:

The background is grey and it looks different from Local‘s vim. What happened?
EDIT: When I don’t use screen everything works well. The ugly color only exists in screen.
Apparently, the problem is solved by adding these lines to
~/.screenrc: