In a custom theme, how do you select the desired light and dark palettes?

Under your user preferences, you may have set the dark mode color scheme to a different one than the default.

You can view all color palettes at /admin/customize/colors, I believe.