How to change 3D Viewport Color in Blender 2.49b?
Expand the top Info window bar, navigate to the Theme tab, and press Add to create a new one.

From the menus make sure you pick 3D View, then choose Background and adjust the color from the sliders or the color picker as desired.

You can also adjust the grid color by picking Grid from the second dropdown.