A warm color (with tones of red, orange, yellow, etc.) will look best with the warm tone of the wood. A neutral shade, like taupe, with a more golden hue will contrast well. Avoid colors with cool tones, such as blue or grey.
You can use almost any color you want with mahogany floors, though warmer colors may work best. I would avoid yellows and medium browns as these will make the room look sallow. Greens and oranges with too much yellow in them will have the same problem. Veer more toward reddish or bluish hues instead of yellow as the base.
Assuming that the mahogany floors that are mentioned are simply clear coated or lightly stained, the color of the floor will be a reddish-brown. Lighter and more neutral colors will accent the mahogany nicely. The size and purpose of the room will influence the decision as well.
Since mahogany is a very dark and rich colour, it is best to match it with lighter colours. Natural shades like beige, cream and white go very well. Pink tones should be avoided as they will clash with the red undertones in the mahogany.
A neutral color will go best becasue mahogany has a lot of color in it. I have mahogany floors and we painted are walls a light brown. It looks really good and I think a cream color would also be a good choice.