Palette Library

Lecture Hall

A calm palette for education with a blue primary and a red accent. Text reaches 12.52:1 in light mode and 14.75:1 in dark mode.

How to use it

Lecture Hall's roles on a real interface, with the ratios stored for this palette.

  • Light mode: page #f7fbff, cards #ebf4fd, and text #303133 at 12.52:1; buttons #1d4e89 with #f7fbff labels at 8.06:1; highlights #e76f51 with #000000 text at 6.79:1.
  • Dark mode: page #060c13, cards #121417, and text #d2e1f1 at 14.75:1; buttons #7db1f4 with #060c13 labels at 8.85:1; highlights #e76f51 with #060c13 text at 6.34:1.
  • Links: #1d4e89 reaches 8.06:1 on the light page, and #7db1f4 reaches 8.85:1 on the dark page.
  • The accent as text: In light mode, keep #e76f51 for fills and badges, not text: it reaches only 2.97: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
#f7fbff
#060c13
Surface
#ebf4fd
#121417
Text
#303133
#d2e1f1
Primary
#1d4e89
#7db1f4
Primary Foreground
#f7fbff
#060c13
Accent
#e76f51
#e76f51
Accent Foreground
#000000
#060c13

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
Text12.52:1AAArequired11.71:1AAArequired1.55:1Fail4.21:1AA large
Primary8.06:1AAArequired7.54:1AAA1.00:1Fail2.71:1Fail
Accent2.97:1Fail2.78:1Fail2.71:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.06:1Fail8.06:1AAArequired2.97:1Fail
Accent Foreground20.19:1AAA18.89:1AAA2.50:1Fail6.79:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text14.75:1AAArequired13.86:1AAArequired1.66:1Fail2.32:1Fail
Primary8.85:1AAArequired8.31:1AAA1.00:1Fail1.39:1Fail
Accent6.34:1AA5.96:1AA1.39:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.06:1Fail8.85:1AAArequired6.34:1AA
Accent Foreground1.00:1Fail1.06:1Fail8.85:1AAA6.34: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: #f7fbff;
  --surface: #ebf4fd;
  --text: #303133;
  --primary: #1d4e89;
  --primary-foreground: #f7fbff;
  --accent: #e76f51;
  --accent-foreground: #000000;
}

.dark {
  --background: #060c13;
  --surface: #121417;
  --text: #d2e1f1;
  --primary: #7db1f4;
  --primary-foreground: #060c13;
  --accent: #e76f51;
  --accent-foreground: #060c13;
}

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: #f7fbff;
  --surface: #ebf4fd;
  --text: #303133;
  --primary: #1d4e89;
  --primary-foreground: #f7fbff;
  --accent: #e76f51;
  --accent-foreground: #000000;
}

.dark {
  color-scheme: dark;
  --background: #060c13;
  --surface: #121417;
  --text: #d2e1f1;
  --primary: #7db1f4;
  --primary-foreground: #060c13;
  --accent: #e76f51;
  --accent-foreground: #060c13;
}

@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 Atlas, which shares the calm style: text reaches 12.52:1 in light mode against 12.60:1, both use a blue primary, and the accent is red where Atlas's is yellow.
  • Compared with Classroom Pop, which shares the Education topic: text reaches 12.52:1 in light mode against 18.07:1, the primary is blue where Classroom Pop's is red, and the accent is red where Classroom Pop's is blue.