Accent walls in dark colors are common. Choose a wall that has little to no windows or doors for the darker color. With long and narrow spaces, paint the darker color on a smaller wall, preferably the one farthest from the entry.
If there’s a feature or focal point in the space you want eyes drawn to, paint the wall behind it the darker color.