Can I paint chair rail same color as wall?
Technically you can.
However, in my own house I have a chair that has the same color as my wall, and I don't like it. It's as if the chair is part of the wall. I'd do the rail in a lighter or darker shade.
good luck! Evelien