High voltage input window comparator
Just divide the voltages down to something reasonable. If you use a CMOS-input comparator, or op-amps as a comparator, you can use very high value resistors without significant loss of accuracy.  

BTW, I presume you are talking about DC here, otherwise the problem is a bit different. 

If you used a 10M + 101K resistors you would have a 1.8V to 2.3VDC output and you could use a 5V supply for the circuit.