BLUE 1 for shadcn/ui

BLUE 1 is a shadcn/ui theme built around a vivid blue primary color (#023cb6) with light blue accents (#f1f5f9). The light mode uses a neutral background (#ffffff). Dark mode switches to a neutral gray primary (#d3d3d3) on an indigo-tinted background (#16161d).

Color palette

TokenLightDark
Background
#ffffffwhite
#16161dblack
Foreground
#020817black
#aab1d3lightsteelblue
Card
#ffffffwhite
#1a1b25black
Card foreground
#020817black
#aab1d3lightsteelblue
Popover
#ffffffwhite
#1a1b25black
Popover foreground
#020817black
#777a95slategray
Primary
#023cb6mediumblue
#d3d3d3lightgray
Primary foreground
#f8fafcghostwhite
#333333darkslategray
Secondary
#f1f5f9whitesmoke
#88a0ebcornflowerblue
Secondary foreground
#0f172ablack
#1a1b25black
Muted
#f1f5f9whitesmoke
#282936darkslategray
Muted foreground
#64748bslategray
#71748eslategray
Accent
#f1f5f9whitesmoke
#14151cblack
Accent foreground
#0f172ablack
#d3d3d3lightgray
Destructive
#f72727crimson
#c0514eindianred
Destructive foreground
#f8fafcghostwhite
#f8fafcghostwhite
Border
#e2e8f0lavender
#42455adarkslategray
Input
#e2e8f0lavender
#1e202ddarkslategray
Ring
#023cb6mediumblue
#88a0ebcornflowerblue

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button8.58:1AAA
Secondary button16.30:1AAA
Muted text4.34:1AA Large
Accent16.30:1AAA
Destructive3.80:1AA Large
Dark mode
Text on background8.51:1AAA
Text on card8.09:1AAA
Primary button8.44:1AAA
Secondary button6.74:1AA
Muted text3.13:1AA Large
Accent12.18:1AAA
Destructive4.43:1AA Large

CSS variables

Paste this into your globals.css to use BLUE 1 in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.137 0.036 258.526);
  --muted: oklch(0.968 0.007 247.895);
  --muted-foreground: oklch(0.555 0.041 257.44);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.137 0.036 258.526);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.137 0.036 258.526);
  --border: oklch(0.929 0.013 255.532);
  --input: oklch(0.929 0.013 255.532);
  --primary: oklch(0.419 0.199 262.534);
  --primary-foreground: oklch(0.984 0.003 247.859);
  --secondary: oklch(0.968 0.007 247.895);
  --secondary-foreground: oklch(0.208 0.04 265.727);
  --accent: oklch(0.968 0.007 247.895);
  --accent-foreground: oklch(0.208 0.04 265.727);
  --destructive: oklch(0.627 0.238 27.654);
  --destructive-foreground: oklch(0.984 0.003 247.859);
  --ring: oklch(0.418 0.199 262.612);
  --chart-1: oklch(0.419 0.199 262.534);
  --chart-2: oklch(0.968 0.007 247.895);
  --chart-3: oklch(0.968 0.007 247.895);
  --chart-4: oklch(0.993 0.002 247.838);
  --chart-5: oklch(0.419 0.204 262.504);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.203 0.014 285.102);
  --foreground: oklch(0.766 0.049 276.035);
  --muted: oklch(0.286 0.023 278.46);
  --muted-foreground: oklch(0.566 0.04 279.856);
  --popover: oklch(0.226 0.019 280.253);
  --popover-foreground: oklch(0.587 0.041 280.058);
  --card: oklch(0.226 0.019 280.253);
  --card-foreground: oklch(0.766 0.049 276.035);
  --border: oklch(0.396 0.036 278.297);
  --input: oklch(0.248 0.025 277.622);
  --primary: oklch(0.867 0 169.695);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.718 0.113 269.854);
  --secondary-foreground: oklch(0.226 0.019 280.253);
  --accent: oklch(0.197 0.016 280.374);
  --accent-foreground: oklch(0.867 0 169.695);
  --destructive: oklch(0.578 0.144 24.182);
  --destructive-foreground: oklch(0.984 0.003 247.858);
  --ring: oklch(0.718 0.113 269.854);
  --chart-1: oklch(0.867 0 169.695);
  --chart-2: oklch(0.718 0.113 269.854);
  --chart-3: oklch(0.197 0.016 280.374);
  --chart-4: oklch(0.749 0.1 270.243);
  --chart-5: oklch(0.865 0.003 17.214);
}