The number 312040 (three hundred twelve thousand forty) is written in Roman numerals as follows: CCCXIIXL