EXHIBIT 23.1 Published on March 10, 2020 Exhibit 23.1Consent of Independent Registered Public Accounting FirmThe Board of DirectorsCastle Biosciences, Inc.:We consent to the use of our report incorporated by reference herein./s/ KPMG LLPSan Diego, CaliforniaMarch 10, 2020