The number 312840 (three hundred twelve thousand eight hundred forty) is written in Roman numerals as follows: CCCXIIDCCCXL