You're halfway there ;)
Both the color of the LED, and the supply voltage determine the resistor value needed.
Red, orange, yellow, and amber generally require only 2.0 to 2.2 volts maximum; while white, blue, and green can handle up to 3.3 or 3.5 volts.
Take your supply voltage (say 18v)...