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.

Get startedNew

Explore 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.

Get startedNew

Explore your palette →

Roles

Five roles and their two foregrounds. Copy the exact HEX values.

RoleLightDark
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.

light mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text17.06:1AAArequired14.83:1AAArequired3.94:1AA large7.19:1AAA
Primary4.32:1UIrequired3.76:1AA large1.00:1Fail1.82:1Fail
Accent2.37:1Fail2.06:1Fail1.82:1Fail1.00:1Fail
Primary Foreground1.07:1Fail1.23:1Fail4.63:1AArequired2.54:1Fail
Accent Foreground17.06:1AAA14.83:1AAA3.94:1AA large7.19:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text15.17:1AAArequired13.99:1AAArequired2.17:1Fail1.98:1Fail
Primary6.96:1AArequired6.42:1AA1.00:1Fail1.09:1Fail
Accent7.66:1AAA7.06:1AAA1.09:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.08:1Fail6.96:1AArequired7.66:1AAA
Accent Foreground1.00:1Fail1.08:1Fail6.96:1AA7.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.