digitalWrite() takes HIGH or LOW as argument, not a number. So it's either ON or OFF.
Whilst it's true that the second argument is interpreted as ON or OFF, digitalWrite follows the C convention that zero is OFF, and non-zero is ON, and so any value in the range 1...255 inclusive will be interpreted as ON.
But, as noted, this probably isn't what the OP wanted.