There was a period at the end of 90s when "scary" cartoons were quite common.
One could be Tales from the Cryptkeeper and the following series, New Tales from the Cryptkeeper
From Wikipedia:
Tales from the Cryptkeeper is an animated horror children's series made by Nelvana. It was shown on YTV in Canada and on ABC in the United States. In Canada, it still airs re-runs near Halloween on Teletoon. It was based on the 1950s EC Comics series Tales from the Crypt, and the live-action television show, of the same name, which aired concurrently on HBO. Being aimed at children, Tales from the Cryptkeeper was significantly milder than its live-action HBO counterpart and all blood and gore were completely omitted in order to target the audience.
The series was cancelled on December 10, 1994. In 1999, the show returned to the air as New Tales from the Cryptkeeper. The animation was different from that of the previous episodes and it switched over to Teletoon in Canada, and also switched to CBS in the United States.
The show details the Cryptkeeper telling different horror stories to the viewers, each with a lesson to be learned.
This is a picture of the Cryptkeeper
and another picture from the following season