Using Whale Shark (#607C8E) in Interface Design: Scale, Buttons and Dark Mode
A working design system from Whale Shark #607C8E: a 50 to 950 scale, button states with contrast, a dark-mode version, an accessible link color and the CSS to paste in.
Whale Shark (#607C8E) is a medium, muted blue. As an interface color it has a clear personality: it is light enough that dark labels read better than white ones, which makes it better as a surface, a highlight or a data color than as a button. 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 Whale Shark
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 Whale Shark and moves only the lightness. The step closest to Whale Shark keeps its exact value.
| Step | Hex | Contrast on white | Best text on it |
|---|---|---|---|
| 50 | #F4F7FA | 1.07:1 | #111111 |
| 100 | #E5ECF1 | 1.19:1 | #111111 |
| 200 | #CFDDE6 | 1.38:1 | #111111 |
| 300 | #B0C4D2 | 1.79:1 | #111111 |
| 400 | #8CA6B7 | 2.54:1 | #111111 |
| 500 | #6E8B9D | 3.59:1 | #111111 |
| 600 | #607C8E | 4.40:1 | #000000 |
| 700 | #455B6A | 7.10:1 | #FFFFFF |
| 800 | #334551 | 9.94:1 | #FFFFFF |
| 900 | #24323C | 13.15:1 | #FFFFFF |
| 950 | #121C22 | 17.28: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 Whale Shark itself, so the button stays in family.
| State | Background | Label | Label contrast |
|---|---|---|---|
| Default | #607C8E | #000000 | 4.77:1 |
| Hover | #5A7586 | #FFFFFF | 4.85:1 |
| Pressed | #556E7F | #FFFFFF | 5.35:1 |
| Disabled | #D5D9DD | #6B7280 | 3.40: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 Whale Shark (#607C8E), which reaches 3 to 1 against a white page, the minimum for interface parts.
Dark mode
On a near-black page (#0F1115), Whale Shark reaches 4.29:1 (AA large). That is not enough for text, so lighten it. Horizon (#668294) is the closest lightness of the same hue that reaches 4.5 to 1.
Links and text
Whale Shark on white reaches only 4.40:1, which is not enough for text. For links and small headings use Night Owl (#5D798B), the closest shade that reaches 4.5 to 1, and keep Whale Shark itself for fills and large display type.
Surfaces and borders
Tints of Whale Shark make quiet surfaces that feel connected to the brand without competing with it. Snow (#F9FAFA) works as a card or page tint, and Bride (#E8EAEC) as a border or divider.
The CSS
:root {
--brand: #607C8E;
--brand-hover: #5A7586;
--brand-active: #556E7F;
--on-brand: #000000;
--brand-surface: #F9FAFA;
--brand-border: #E8EAEC;
--brand-text: #5D798B;
--focus-ring: #607C8E;
}
@media (prefers-color-scheme: dark) {
:root {
--brand: #668294;
--brand-text: #668294;
}
}A short checklist
- Use Whale Shark for the one action you most want people to take.
- Put #000000 text on it and check that the ratio stays above 4.5 to 1.
- Use the scale for hover, pressed, border and surface colors rather than inventing new ones.
- Define a separate dark-mode value and test it on a dark page.
- Never use the color as the only signal: add an icon, a label or an underline.