Blue Rich 1 for shadcn/ui

Blue Rich 1 is a shadcn/ui theme built around an indigo primary color (#1a1fb1) with near-white accents (#efefef). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#2828ca) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#1a1fb1mediumblue
#2828camediumblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#00ade6deepskyblue
#009a9ddarkcyan
Secondary foreground
#fff6f6snow
#ffffffwhite
Muted
#e4e4e4gainsboro
#28282bdarkslategray
Muted foreground
#000000black
#ffffffwhite
Accent
#efefefwhitesmoke
#151516black
Accent foreground
#000000black
#ffffffwhite
Destructive
#d81313crimson
#da1e1ecrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eeeef2whitesmoke
#22222bdarkslategray
Input
#eeeef2whitesmoke
#22222bdarkslategray
Ring
#1c33b4darkslateblue
#1c19b8mediumblue

Contrast

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

Light mode
Text on background20.34:1AAA
Text on card21.00:1AAA
Primary button11.21:1AAA
Secondary button2.43:1Fail
Muted text16.44:1AAA
Accent18.31:1AAA
Destructive5.23:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button9.35:1AAA
Secondary button3.43:1AA Large
Muted text14.77:1AAA
Accent18.29:1AAA
Destructive5.03:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 287.104);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.917 0 172.875);
  --muted-foreground: oklch(0 0 0);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.95 0.005 287.075);
  --input: oklch(0.95 0.005 287.075);
  --primary: oklch(0.374 0.217 268.21);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.701 0.141 230.654);
  --secondary-foreground: oklch(0.98 0.01 17.32);
  --accent: oklch(0.953 0 198.435);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.559 0.222 28.498);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.407 0.202 267.253);
  --chart-1: oklch(0.592 0.211 325.468);
  --chart-2: oklch(0.536 0.09 228.664);
  --chart-3: oklch(0.403 0.142 353.448);
  --chart-4: oklch(0.924 0.175 133.733);
  --chart-5: oklch(0.72 0.187 46.497);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.277 0.007 286.729);
  --muted-foreground: oklch(1 0 180);
  --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.255 0.017 285.877);
  --input: oklch(0.255 0.017 285.877);
  --primary: oklch(0.42 0.236 270.181);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.622 0.106 197.188);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.195 0.002 287.011);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.568 0.218 27.889);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.378 0.229 268.627);
  --chart-1: oklch(0.535 0.234 263.145);
  --chart-2: oklch(0.692 0.136 170.947);
  --chart-3: oklch(0.412 0.192 325.354);
  --chart-4: oklch(0.734 0 180);
  --chart-5: oklch(0.291 0.061 128.062);
}