I wouldn't worry about a gray room near a beige hallway. It might make me choose a warmer gray though. I would paint the trim the same color. We just repainted rooms where the previous owner used different trim colors in different rooms. It looked awful.