Palette Library
Trading Floor
A bold palette for finance with a blue primary and a red accent. Text reaches 15.41:1 in light mode and 15.44:1 in dark mode.
How to use it
Trading Floor's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fffffe, cards #f8f2ed, and text #2c2319 at 15.41:1; buttons #0b5394 with #fffffe labels at 7.83:1; highlights #e03131 with #000000 text at 4.65:1.
- Dark mode: page #12100e, cards #1d1b19, and text #f1e6db at 15.44:1; buttons #6fb0f9 with #12100e labels at 8.36:1; highlights #ff564f with #12100e text at 6.05:1.
- Links: #0b5394 reaches 7.83:1 on the light page, and #6fb0f9 reaches 8.36:1 on the dark page.
- The accent as text: #e03131 also works as text: 4.51:1 on the light page and 6.05:1 on the dark page.
Preview
The same palette on a small interface in light and dark.
Light mode
A place for your ideas
Start with colors that work together.
Your next project
A surface for the details that matter.
NewExplore your palette →
Dark mode
A place for your ideas
Start with colors that work together.
Your next project
A surface for the details that matter.
NewExplore your palette →
Roles
Five roles and their two foregrounds. Copy the exact HEX values.
| Role | Light | Dark |
|---|---|---|
| Background | #fffffe | #12100e |
| Surface | #f8f2ed | #1d1b19 |
| Text | #2c2319 | #f1e6db |
| Primary | #0b5394 | #6fb0f9 |
| Primary Foreground | #fffffe | #12100e |
| Accent | #e03131 | #ff564f |
| Accent Foreground | #000000 | #12100e |
Contrast matrix
Five required pairs per mode, judged on the final 8-bit colors.
Light mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 15.41:1AAArequired | 13.89:1AAArequired | 1.96:1Fail | 3.41:1AA large |
| Primary | 7.83:1AAArequired | 7.06:1AAA | 1.00:1Fail | 1.73:1Fail |
| Accent | 4.51:1AA | 4.06:1AA large | 1.73:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.10:1Fail | 7.83:1AAArequired | 4.51:1AA |
| Accent Foreground | 20.98:1AAA | 18.91:1AAA | 2.67:1Fail | 4.65:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 15.44:1AAArequired | 13.96:1AAArequired | 1.84:1Fail | 2.55:1Fail |
| Primary | 8.36:1AAArequired | 7.56:1AAA | 1.00:1Fail | 1.38:1Fail |
| Accent | 6.05:1AA | 5.47:1AA | 1.38:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.10:1Fail | 8.36:1AAArequired | 6.05:1AA |
| Accent Foreground | 1.00:1Fail | 1.10:1Fail | 8.36:1AAA | 6.05:1AArequired |
AAA: normal text ≥ 7:1. AA: normal text ≥ 4.5:1. AA large: large text ≥ 3:1 (24 px, or 18.66 px bold). UI: required component contrast ≥ 3:1. Fail: below 3:1. Required marks the five pairs ColorLint checks in each mode. Other pairs are informational.
ColorLint checks color contrast only. Passing pairs do not mean a page is accessible.
Exports
Both modes, with the exact values the Palette Generator exports.
CSS variables
/* ColorLint palette (v1). Light values in :root; dark values in .dark. */
:root {
--background: #fffffe;
--surface: #f8f2ed;
--text: #2c2319;
--primary: #0b5394;
--primary-foreground: #fffffe;
--accent: #e03131;
--accent-foreground: #000000;
}
.dark {
--background: #12100e;
--surface: #1d1b19;
--text: #f1e6db;
--primary: #6fb0f9;
--primary-foreground: #12100e;
--accent: #ff564f;
--accent-foreground: #12100e;
}
Tailwind v4
/* ColorLint palette for Tailwind CSS v4 (palette v1). */
/* Paste after @import "tailwindcss". Add the "dark" class to <html> for dark mode. */
@custom-variant dark (&:where(.dark, .dark *));
:root {
color-scheme: light;
--background: #fffffe;
--surface: #f8f2ed;
--text: #2c2319;
--primary: #0b5394;
--primary-foreground: #fffffe;
--accent: #e03131;
--accent-foreground: #000000;
}
.dark {
color-scheme: dark;
--background: #12100e;
--surface: #1d1b19;
--text: #f1e6db;
--primary: #6fb0f9;
--primary-foreground: #12100e;
--accent: #ff564f;
--accent-foreground: #12100e;
}
@theme inline {
--color-background: var(--background);
--color-surface: var(--surface);
--color-text: var(--text);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
}
Compared with similar palettes
- Compared with First Aid, which shares the bold style: text reaches 15.41:1 in light mode against 18.58:1, the primary is blue where First Aid's is red, and the accent is red where First Aid's is blue.
- Compared with Blue Chip, which shares the bold style: text reaches 15.41:1 in light mode against 12.40:1, both use a blue primary, and the accent is red where Blue Chip's is yellow.