Please use the Question Tags to start the name and full version number of the Story Format you are using, as answers can vary based on this information. Based on the fact that you mention "dark red" in your question I will assume you are using SugarCube, because Harlowe's error messages are white text on a purple background.
If you use your web-browser's Web Developer tools to Inspect the HTML element structure used to display the error message you will see that it looks something like the following.
<div class="error-view">
<button class="error-toggle" type="button" tabindex="0" aria-label="Toggle the error view" title="Toggle the error view"></button>
<span class="error">Error: the error message...</span>
<pre class="error-source" aria-hidden="true" hidden="hidden">
<code>...example of the passage source code...</code>
</pre>
</div>
... and that the following CSS is being used to style it.
.error-view {
background-color: #511;
border-left: .5em solid #c22;
display: inline-block;
margin: .1em;
max-width: 100%;
padding: 0 .25em;
position: relative;
}
.error-view > .error-toggle {
background-color: transparent;
border: none;
line-height: inherit;
left: 0;
padding: 0;
position: absolute;
top: 0;
width: 1.75em;
}
.error-view > .error-toggle:before {
content: "\e81a";
}
.error-view > .error-toggle.enabled:before {
content: "\e818";
}
.error-view > .error {
display: inline-block;
margin-left: .25em;
}
.error-view > .error-toggle + .error {
margin-left: 1.5em;
}
.error-view > .error-source[hidden] {
display: none;
}
.error-view > .error-source:not([hidden]) {
background-color: rgba(0,0,0,.2);
display: block;
margin: 0 0 .25em;
overflow-x: auto;
padding: .25em;
}
If all you want to do is change the colour of the background then you can use CSS like the following within your project's Story Stylesheet area you change the parent element's background-color property.
.error-view {
background-color: lightseagreen;
}
note: you don't have to use the lightseagreen colour keyword in my example, any valid Colour Value will do.