blue for shadcn/ui

blue is a shadcn/ui theme built around a muted cyan primary color (#87a8ab) with muted red accents (#ab8a87). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted cyan primary (#87a8ab) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#fbfdfewhite
#020303black
Foreground
#040f10black
#f6f8f8whitesmoke
Card
#f8fcfcmintcream
#040607black
Card foreground
#030b0cblack
#f9fbfbghostwhite
Popover
#f8fcfcmintcream
#040607black
Popover foreground
#030b0cblack
#f9fbfbghostwhite
Primary
#87a8abdarkgray
#87a8abdarkgray
Primary foreground
#000000black
#000000black
Secondary
#ab8a87rosybrown
#ab8a87rosybrown
Secondary foreground
#000000black
#000000black
Muted
#f3e8e7linen
#180d0cblack
Muted foreground
#605452dimgray
#ada09fdarkgray
Accent
#ab8a87rosybrown
#ab8a87rosybrown
Accent foreground
#000000black
#000000black
Destructive
#651c0bmaroon
#e13e19orangered
Destructive foreground
#f6baaclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#87a8abdarkgray
#87a8abdarkgray

Contrast

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

Light mode
Text on background19.08:1AAA
Text on card19.17:1AAA
Primary button8.19:1AAA
Secondary button6.74:1AA
Muted text6.07:1AA
Accent6.74:1AA
Destructive7.28:1AAA
Dark mode
Text on background19.36:1AAA
Text on card19.53:1AAA
Primary button8.19:1AAA
Secondary button6.74:1AA
Muted text7.54:1AAA
Accent6.74:1AA
Destructive4.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 204.973);
  --foreground: oklch(0.158 0.018 203.766);
  --muted: oklch(0.94 0.012 25.097);
  --muted-foreground: oklch(0.456 0.017 25.341);
  --popover: oklch(0.987 0.004 204.957);
  --popover-foreground: oklch(0.141 0.016 202.797);
  --card: oklch(0.987 0.004 204.957);
  --card-foreground: oklch(0.141 0.016 202.797);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.707 0.037 204.708);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.664 0.041 25.61);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.664 0.041 25.61);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.343 0.108 33.956);
  --destructive-foreground: oklch(0.84 0.072 32.944);
  --ring: oklch(0.707 0.037 204.708);
  --chart-1: oklch(0.707 0.037 204.708);
  --chart-2: oklch(0.664 0.041 25.61);
  --chart-3: oklch(0.664 0.041 25.61);
  --chart-4: oklch(0.69 0.037 25.521);
  --chart-5: oklch(0.712 0.042 204.692);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.006 203.341);
  --foreground: oklch(0.978 0.002 204.972);
  --muted: oklch(0.174 0.019 26.265);
  --muted-foreground: oklch(0.716 0.015 25.175);
  --popover: oklch(0.12 0.007 203.341);
  --popover-foreground: oklch(0.986 0.001 204.978);
  --card: oklch(0.12 0.007 203.341);
  --card-foreground: oklch(0.986 0.001 204.978);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.707 0.037 204.708);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.664 0.041 25.61);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.664 0.041 25.61);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.603 0.205 33.544);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.707 0.037 204.708);
  --chart-1: oklch(0.707 0.037 204.708);
  --chart-2: oklch(0.664 0.041 25.61);
  --chart-3: oklch(0.664 0.041 25.61);
  --chart-4: oklch(0.69 0.037 25.521);
  --chart-5: oklch(0.712 0.042 204.692);
}