Safety considerations when using LED and a comparator
simulate this circuit &ndash; Schematic created using CircuitLab

When Q1 turns on, the red LED will short across the green+diode and turn on. The threshold for Q1 is ~ 0.65 V (at room temperature), D4 increases this to 1.3 V, and R2 &amp; R3 increase this further by 2x to ~2.6 V. Adjust R3 to suit.

If temperature changes significantly, the threshold will change (decrease by about 0.1 V for 20 F/10C rise).

D6 protects against negative inputs.

If you need Red on when V is low, then swap the red and green LEDs, but use 2 diodes in series with the red one.