Can I Avoid Using Complete/Pure Black Background Color For Dark Mode?

I am creating a webpage that deals with toggle dark mode. I am not sure if I should avoid using complete black background color for dark mode. If not, what color should I actually impelement my dark theme.

CAN I USE MEDIUM OR GENTLE FROM THESE...

can I use either medium or gentle