← Colors in interface design

Using Realm of the Underworld (#114411) in Interface Design: Scale, Buttons and Dark Mode

A working design system from Realm of the Underworld #114411: a 50 to 950 scale, button states with contrast, a dark-mode version, an accessible link color and the CSS to paste in.

Realm of the Underworld (#114411) is a dark, moderately saturated green. As an interface color it has a clear personality: it is dark enough to carry white labels, which makes it a natural button and header color. This guide shows how to build a working interface from it: a full scale, every button state, a dark-mode version, a link color that passes, and the CSS to paste in.

A scale built from Realm of the Underworld

A single color is not enough for an interface. You need lighter steps for surfaces and borders and darker steps for text and hover states. This 50 to 950 scale keeps the hue and saturation of Realm of the Underworld and moves only the lightness. The step closest to Realm of the Underworld keeps its exact value.

StepHexContrast on whiteBest text on it
50#F2F9F21.07:1#111111
100#E2F0E11.18:1#111111
200#CBE3C91.36:1#111111
300#A8CDA51.75:1#111111
400#81B07E2.48:1#111111
500#62955F3.50:1#111111
600#4D7C4B4.88:1#FFFFFF
700#3B64396.84:1#FFFFFF
800#2B4C299.68:1#FFFFFF
900#11441111.29:1#FFFFFF
950#0D200D17.07:1#FFFFFF

Button states

Interactive elements need to look different when you hover, press and disable them, and each state still has to be readable. These values are made from Realm of the Underworld itself, so the button stays in family.

StateBackgroundLabelLabel contrast
Default#114411#FFFFFF11.29:1
Hover#0F400F#FFFFFF11.92:1
Pressed#0E3C0E#FFFFFF12.56:1
Disabled#CFD2CF#6B72803.17:1

Disabled controls are exempt from WCAG contrast rules, but they still need to be recognizable, so the label is kept dark enough to read. For keyboard focus, use an outline of Realm of the Underworld (#114411), which reaches 3 to 1 against a white page, the minimum for interface parts.

Dark mode

On a near-black page (#0F1115), Realm of the Underworld reaches 1.67:1 (Fail). That is not enough for text, so lighten it. Homegrown (#578954) is the closest lightness of the same hue that reaches 4.5 to 1.

Links and text

Realm of the Underworld on white reaches 11.29:1 (AAA), so it can be a link and heading color as it is. Links also need a second cue beyond color, such as an underline, because some readers cannot tell the link color from the surrounding text.

Surfaces and borders

Tints of Realm of the Underworld make quiet surfaces that feel connected to the brand without competing with it. Snow (#F8F9F8) works as a card or page tint, and Airy (#E5E6E5) as a border or divider.

The CSS

CSS variablescss
:root {
  --brand: #114411;
  --brand-hover: #0F400F;
  --brand-active: #0E3C0E;
  --on-brand: #FFFFFF;
  --brand-surface: #F8F9F8;
  --brand-border: #E5E6E5;
  --brand-text: #114411;
  --focus-ring: #114411;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #578954;
    --brand-text: #578954;
  }
}

A short checklist

  1. Use Realm of the Underworld for the one action you most want people to take.
  2. Put #FFFFFF text on it and check that the ratio stays above 4.5 to 1.
  3. Use the scale for hover, pressed, border and surface colors rather than inventing new ones.
  4. Define a separate dark-mode value and test it on a dark page.
  5. Never use the color as the only signal: add an icon, a label or an underline.