Let's make a reproducible example:
import numpy as np
x = np.random.randint(0, 256, (100, 100, 3))
Now you can select all values from the third (blue) channel that result in 1 after the modulo operation with 2, and decrease all of them by 1:
x[..., -1][np.mod(x[..., -1], 2) == 1] -= 1
Now all the values are even (I guess this is what you wanted):
array([[162, 138, 222, ..., 200, 58, 216],
[ 34, 2, 86, ..., 150, 122, 28],
[104, 206, 238, ..., 40, 86, 238],
...,
[ 24, 182, 28, ..., 86, 176, 28],
[184, 206, 140, ..., 26, 22, 80],
[238, 140, 142, ..., 216, 62, 80]])