This only makes sense on a precisely calibrated display. On everything else, there's no way to tell what wavelength you actually end up with when you fill your screen with a color.
A perfectly calibrated display might still not be able to display pure wavelengths. At the very least if it's calibrated properly it won't normally do so at #ff0000 as pure 670nm is well outside the sRGB colour space.