Back Pale Phthalo Blue for shadcn/ui

Back Pale Phthalo Blue is a shadcn/ui theme built around a vivid light blue primary color (#c3d1f8) with muted blue accents (#aab1c5). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the vivid light blue primary (#c3d1f8) on a blue-tinted background (#04060b).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#04060bblack
Foreground
#010309black
#fcfcfdwhite
Card
#f4f6fawhitesmoke
#06080fblack
Card foreground
#010204black
#ffffffwhite
Popover
#f4f6fawhitesmoke
#06080fblack
Popover foreground
#010204black
#ffffffwhite
Primary
#c3d1f8lightblue
#c3d1f8lightblue
Primary foreground
#0e2b7cmidnightblue
#0e2b7cmidnightblue
Secondary
#c9ccd4lightgrey
#323334darkslategray
Secondary foreground
#30333bdarkslategray
#cbcccdlightgrey
Muted
#d4d9e7gainsboro
#181d2bblack
Muted foreground
#606062dimgray
#9d9e9fdarkgray
Accent
#aab1c5silver
#3a3f4adarkslategray
Accent foreground
#191c24black
#d7d9e0gainsboro
Destructive
#dc3309orangered
#f75d36tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#dedfe3gainsboro
#1a1b1eblack
Input
#dedfe3gainsboro
#1a1b1eblack
Ring
#c3d1f8lightblue
#c3d1f8lightblue

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.58:1AAA
Text on card19.20:1AAA
Primary button8.37:1AAA
Secondary button7.86:1AAA
Muted text4.46:1AA Large
Accent7.97:1AAA
Destructive4.62:1AA
Dark mode
Text on background19.75:1AAA
Text on card20.01:1AAA
Primary button8.37:1AAA
Secondary button7.91:1AAA
Muted text6.28:1AA
Accent7.50:1AAA
Destructive6.55:1AA

CSS variables

Paste this into your globals.css to use Back Pale Phthalo Blue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 270.088);
  --foreground: oklch(0.101 0.02 259.35);
  --muted: oklch(0.887 0.02 269.922);
  --muted-foreground: oklch(0.491 0.002 270.082);
  --popover: oklch(0.973 0.006 270.071);
  --popover-foreground: oklch(0.08 0.016 259.35);
  --card: oklch(0.973 0.006 270.071);
  --card-foreground: oklch(0.08 0.016 259.35);
  --border: oklch(0.904 0.005 270.075);
  --input: oklch(0.904 0.005 270.075);
  --primary: oklch(0.864 0.056 269.469);
  --primary-foreground: oklch(0.329 0.141 264.369);
  --secondary: oklch(0.846 0.011 270.008);
  --secondary-foreground: oklch(0.321 0.016 269.643);
  --accent: oklch(0.762 0.03 269.761);
  --accent-foreground: oklch(0.227 0.017 269.337);
  --destructive: oklch(0.586 0.21 33.357);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.864 0.056 269.469);
  --chart-1: oklch(0.864 0.056 269.469);
  --chart-2: oklch(0.846 0.011 270.008);
  --chart-3: oklch(0.762 0.03 269.761);
  --chart-4: oklch(0.87 0.009 270.03);
  --chart-5: oklch(0.863 0.058 269.438);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.014 264.435);
  --foreground: oklch(0.992 0.001 270.116);
  --muted: oklch(0.231 0.028 268.723);
  --muted-foreground: oklch(0.698 0.002 270.096);
  --popover: oklch(0.135 0.016 265.624);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.135 0.016 265.624);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.222 0.007 269.852);
  --input: oklch(0.222 0.007 269.852);
  --primary: oklch(0.864 0.056 269.469);
  --primary-foreground: oklch(0.329 0.141 264.369);
  --secondary: oklch(0.319 0.003 270.049);
  --secondary-foreground: oklch(0.844 0.002 270.1);
  --accent: oklch(0.367 0.021 269.563);
  --accent-foreground: oklch(0.886 0.009 270.037);
  --destructive: oklch(0.674 0.196 35.054);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.864 0.056 269.469);
  --chart-1: oklch(0.864 0.056 269.469);
  --chart-2: oklch(0.319 0.003 270.049);
  --chart-3: oklch(0.367 0.021 269.563);
  --chart-4: oklch(0.349 0.003 270.047);
  --chart-5: oklch(0.863 0.058 269.438);
}