To convert RGB to duotone, you can use the following formula: R = C + G + B