A frame that's slightly darker than the door definitely looks much better. But what you may want to do, if possible, is make the door slightly lighter than the frame. That way, the frame will blend with whatever colored walls you have but the door would still be a different hue.