EX-23.1 3 tmb-20230525xex23d1.htm EX-23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We consent to the incorporation by reference in this Registration Statement on Form S-8 of our report dated February 24, 2023 relating to the financial statements of RLI Corp and the effectiveness of the RLI Corp’s internal control over financial reporting, appearing in this Annual Report on Form 10-K for the year ended December 31, 2022.

/s/ Deloitte & Touche LLP

Chicago, Illinois

May 25, 2023