The C I 135.58 line is located in the wavelength range of NASAs Interface Region Imagin Spectrograph (IRIS) small explorer mission. We here study the formation and diagnostic potential of this line by means of non local-thermodynamic-equilibrium modeling, employing both 1D and 3D radiation-magnetohydrodynamic models. The C I/C II ionization balance is strongly influenced by photoionization by Ly-alpha emission. The emission in the C I 135.58 line is dominated by a recombination cascade and the line forming region is optically thick. The Doppler shift of the line correlates strongly with the vertical velocity in its line forming region, which is typically located at 1.5 Mm height. With IRIS the C I 135.58 line is usually observed together with the O I 135.56 line, and from the Doppler shift of both lines, we obtain the velocity difference between the line forming regions of the two lines. From the ratio of the C I/O I line core intensity, we can determine the distance between the C I and the O I forming layers. Combined with the velocity difference, the velocity gradient at mid-chromospheric heights can be derived. The C I/O I total intensity line ratio is correlated with the inverse of the electron density in the mid-chromosphere. We conclude that the C I 135.58 line is an excellent probe of the middle chromosphere by itself, and together with the O I 135.56 line the two lines provide even more information, which complements other powerful chromospheric diagnostics of IRIS such as the Mg II h and k lines and the C II lines around 133.5 nm.