Emacs' frame-background-mode was set to light in my customizations. This cause Emacs to assume a light background color. After removing this customization, Emacs detects the inkpot background color as a dark one and uses some light colors for text.