Start with a job
Write down what the design should make easy to see. A portfolio might prioritise photography, while a booking form needs a clearly visible next step. Pick a reference for its balance of colours as well as the hues themselves.
Assign a role to each colour
Try #F8F5EA for the surface, #242D27 for type and #375B4B for primary actions. Add #DFE7D7 for a secondary panel and #DA9A73 for illustration. Create the same small sample with the accent in two different places and see where your eye goes first.
Test it on a real layout
Make one small mock-up with an ordinary paragraph, a button and a selected state. Check contrast on the actual pairings. If two colours are competing for attention, reduce the area or saturation of one before changing the hue. Save the final values as CSS variables.