RLI Corp, an Illinois-based specialty insurance company, has reported operating earnings of $40.8m or $1.91 per share for the second quarter of 2011, compared to $32.2m or $1.52 per share, in the same quarter last year.

Consolidated revenue for the second quarter of 2011 was $156m, compared to $142m in the same quarter of last year.

For the six months of 2011, operating earnings were $64.4m or $3.02 per share, compared to $52.2m or $2.45 per share for the same period in 2010.

RLI Corp chairman and CEO Jonathan Michael said while conditions in the surplus lines space remain challenging, the premiums written advanced in the quarter and through the first half of the year due to growth from newer product initiatives and the addition of CBIC.