Pastel Blue for shadcn/ui

Pastel Blue is a shadcn/ui theme built around a blue primary color (#89aaeb) with near-white accents (#e7e8e9). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the blue primary (#89aaeb) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfcfdwhite
#000000black
Foreground
#020812black
#ffffffwhite
Card
#fbfcfdwhite
#000000black
Card foreground
#020812black
#ffffffwhite
Popover
#fbfcfdwhite
#000000black
Popover foreground
#020812black
#ffffffwhite
Primary
#89aaebskyblue
#89aaebskyblue
Primary foreground
#0a1939midnightblue
#0a1939midnightblue
Secondary
#e7e8e9lavender
#17191cblack
Secondary foreground
#4d4e51darkslategray
#aab0bbdarkgray
Muted
#d2daeagainsboro
#151d2dblack
Muted foreground
#4f5869dimgray
#969fb0darkgray
Accent
#e7e8e9lavender
#17191cblack
Accent foreground
#4d4e51darkslategray
#aab0bbdarkgray
Destructive
#b74406firebrick
#df5207chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eeeff2whitesmoke
#1d2025black
Input
#eeeff2whitesmoke
#1d2025black
Ring
#89aaebskyblue
#89aaebskyblue

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button7.43:1AAA
Secondary button6.77:1AA
Muted text5.09:1AA
Accent6.77:1AA
Destructive5.47:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.43:1AAA
Secondary button8.11:1AAA
Muted text6.31:1AA
Accent8.11:1AAA
Destructive3.92:1AA Large

CSS variables

Paste this into your globals.css to use Pastel Blue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 264.545);
  --foreground: oklch(0.131 0.028 255.202);
  --muted: oklch(0.887 0.024 264.448);
  --muted-foreground: oklch(0.458 0.03 264.217);
  --popover: oklch(0.991 0.002 264.545);
  --popover-foreground: oklch(0.131 0.028 255.202);
  --card: oklch(0.991 0.002 264.545);
  --card-foreground: oklch(0.131 0.028 255.202);
  --border: oklch(0.952 0.004 264.539);
  --input: oklch(0.952 0.004 264.539);
  --primary: oklch(0.739 0.102 263.652);
  --primary-foreground: oklch(0.222 0.065 262.423);
  --secondary: oklch(0.93 0.001 264.547);
  --secondary-foreground: oklch(0.425 0.006 264.506);
  --accent: oklch(0.93 0.001 264.547);
  --accent-foreground: oklch(0.425 0.006 264.506);
  --destructive: oklch(0.538 0.161 41.541);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.739 0.102 263.652);
  --chart-1: oklch(0.739 0.102 263.652);
  --chart-2: oklch(0.93 0.001 264.547);
  --chart-3: oklch(0.93 0.001 264.547);
  --chart-4: oklch(0.954 0.001 264.548);
  --chart-5: oklch(0.737 0.106 263.598);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.232 0.033 263.607);
  --muted-foreground: oklch(0.701 0.027 264.386);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.242 0.012 264.326);
  --input: oklch(0.242 0.012 264.326);
  --primary: oklch(0.739 0.102 263.652);
  --primary-foreground: oklch(0.222 0.065 262.423);
  --secondary: oklch(0.211 0.008 264.391);
  --secondary-foreground: oklch(0.755 0.017 264.465);
  --accent: oklch(0.211 0.008 264.391);
  --accent-foreground: oklch(0.755 0.017 264.465);
  --destructive: oklch(0.621 0.188 41.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.739 0.102 263.652);
  --chart-1: oklch(0.739 0.102 263.652);
  --chart-2: oklch(0.211 0.008 264.391);
  --chart-3: oklch(0.211 0.008 264.391);
  --chart-4: oklch(0.243 0.01 264.372);
  --chart-5: oklch(0.737 0.106 263.598);
}