Maxim has a wide variety of the type of device attached. Adjust resistor voltage divider so that 3 Volts at Vin results in 1.235 Volts at the IN+ of the device.
The MAX921 is a similar device that doesn't need a pull-up resistor, and appears to be more widely available.
The devices consume a mere few microamps and cost around $1.50 in unit quantities.
Maxim is very generous with free samples. Just go to their website and click on "free sample" .
This threshold point about comparators comes up so often, where the OP is trying to set the max threshold too within [+V -1.5] and he gets an inversion effect.