Palette Library
Code Review
A minimal palette for developer tools with a blue primary and a green accent. Text reaches 17.06:1 in light mode and 15.17:1 in dark mode.
How to use it
Code Review's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #f7f7f7, cards #e2e8f1, and text #11151d at 17.06:1; buttons #1f6feb with #ffffff labels at 4.63:1; highlights #3fb950 with #11151d text at 7.19:1.
- Dark mode: page #0a0d12, cards #15171b, and text #dae4f3 at 15.17:1; buttons #5c9aff with #0a0d12 labels at 6.96:1; highlights #3fb950 with #0a0d12 text at 7.66:1.
- Links: #1f6feb reaches 4.32:1 on the light page, and #5c9aff reaches 6.96:1 on the dark page.
- The accent as text: In light mode, keep #3fb950 for fills and badges, not text: it reaches only 2.37:1 on the 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 | #f7f7f7 | #0a0d12 |
| Surface | #e2e8f1 | #15171b |
| Text | #11151d | #dae4f3 |
| Primary | #1f6feb | #5c9aff |
| Primary Foreground | #ffffff | #0a0d12 |
| Accent | #3fb950 | #3fb950 |
| Accent Foreground | #11151d | #0a0d12 |
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 | 17.06:1AAArequired | 14.83:1AAArequired | 3.94:1AA large | 7.19:1AAA |
| Primary | 4.32:1UIrequired | 3.76:1AA large | 1.00:1Fail | 1.82:1Fail |
| Accent | 2.37:1Fail | 2.06:1Fail | 1.82:1Fail | 1.00:1Fail |
| Primary Foreground | 1.07:1Fail | 1.23:1Fail | 4.63:1AArequired | 2.54:1Fail |
| Accent Foreground | 17.06:1AAA | 14.83:1AAA | 3.94:1AA large | 7.19:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 15.17:1AAArequired | 13.99:1AAArequired | 2.17:1Fail | 1.98:1Fail |
| Primary | 6.96:1AArequired | 6.42:1AA | 1.00:1Fail | 1.09:1Fail |
| Accent | 7.66:1AAA | 7.06:1AAA | 1.09:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.08:1Fail | 6.96:1AArequired | 7.66:1AAA |
| Accent Foreground | 1.00:1Fail | 1.08:1Fail | 6.96:1AA | 7.66:1AAArequired |
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: #f7f7f7;
--surface: #e2e8f1;
--text: #11151d;
--primary: #1f6feb;
--primary-foreground: #ffffff;
--accent: #3fb950;
--accent-foreground: #11151d;
}
.dark {
--background: #0a0d12;
--surface: #15171b;
--text: #dae4f3;
--primary: #5c9aff;
--primary-foreground: #0a0d12;
--accent: #3fb950;
--accent-foreground: #0a0d12;
}
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: #f7f7f7;
--surface: #e2e8f1;
--text: #11151d;
--primary: #1f6feb;
--primary-foreground: #ffffff;
--accent: #3fb950;
--accent-foreground: #11151d;
}
.dark {
color-scheme: dark;
--background: #0a0d12;
--surface: #15171b;
--text: #dae4f3;
--primary: #5c9aff;
--primary-foreground: #0a0d12;
--accent: #3fb950;
--accent-foreground: #0a0d12;
}
@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 Mono Blueprint, which shares the minimal style: text reaches 17.06:1 in light mode against 16.04:1, both use a blue primary, and the accent is green where Mono Blueprint's is blue.
- Compared with Invoice, which shares the minimal style: text reaches 17.06:1 in light mode against 12.19:1, both use a blue primary, and both use a green accent.