Shades of Gray (or any other color)

I worked on a site recently that used many, many shades of gray. How to find the right shade and use it with CSS's darken() or lighten() function?

This website was a big timesaver:

Put in your starting color, select lighten or darken and use the slider to find just the right shade of any color.