#1A4D2E for shadcn/ui

#1A4D2E is a shadcn/ui theme built around a deep green primary color (#1a4d2e) with muted green accents (#a6bfb0). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#1a4d2e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020904black
#fcfdfcwhite
Card
#ffffffwhite
#000000black
Card foreground
#020904black
#fcfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#020904black
#fcfdfcwhite
Primary
#1a4d2edarkslategray
#1a4d2edarkslategray
Primary foreground
#b3e6c7powderblue
#b3e6c7powderblue
Secondary
#c8d0cblightgrey
#213127darkslategray
Secondary foreground
#2f3732darkslategray
#b6cdbfsilver
Muted
#d7eadegainsboro
#15281dblack
Muted foreground
#36493edarkslategray
#b6c9bdsilver
Accent
#a6bfb0darkgray
#284835darkslategray
Accent foreground
#151e19black
#c4decelightgrey
Destructive
#d41900firebrick
#fd432btomato
Destructive foreground
#ffe3e0mistyrose
#ffffffwhite
Border
#e4e7e5gainsboro
#1b1d1cblack
Input
#e4e7e5gainsboro
#1b1d1cblack
Ring
#1a4d2edarkslategray
#1a4d2edarkslategray

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card20.12:1AAA
Primary button7.07:1AAA
Secondary button7.77:1AAA
Muted text7.67:1AAA
Accent8.67:1AAA
Destructive4.40:1AA Large
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button7.07:1AAA
Secondary button8.17:1AAA
Muted text8.89:1AAA
Accent7.07:1AAA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.021 160.087);
  --muted: oklch(0.92 0.026 159.569);
  --muted-foreground: oklch(0.386 0.031 158.239);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.021 160.087);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.021 160.087);
  --border: oklch(0.925 0.003 160.166);
  --input: oklch(0.925 0.003 160.166);
  --primary: oklch(0.375 0.076 153.963);
  --primary-foreground: oklch(0.88 0.067 158.336);
  --secondary: oklch(0.85 0.01 159.969);
  --secondary-foreground: oklch(0.327 0.012 159.345);
  --accent: oklch(0.781 0.034 159.204);
  --accent-foreground: oklch(0.223 0.015 158.56);
  --destructive: oklch(0.553 0.217 30.702);
  --destructive-foreground: oklch(0.938 0.031 26.692);
  --ring: oklch(0.375 0.076 153.963);
  --chart-1: oklch(0.375 0.076 153.963);
  --chart-2: oklch(0.85 0.01 159.969);
  --chart-3: oklch(0.781 0.034 159.204);
  --chart-4: oklch(0.872 0.008 160.016);
  --chart-5: oklch(0.379 0.079 153.609);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 160.19);
  --muted: oklch(0.257 0.034 156.675);
  --muted-foreground: oklch(0.818 0.026 159.48);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 160.19);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.002 160.19);
  --border: oklch(0.229 0.004 159.803);
  --input: oklch(0.229 0.004 159.803);
  --primary: oklch(0.375 0.076 153.963);
  --primary-foreground: oklch(0.88 0.067 158.336);
  --secondary: oklch(0.294 0.027 157.939);
  --secondary-foreground: oklch(0.828 0.032 159.328);
  --accent: oklch(0.372 0.051 156.473);
  --accent-foreground: oklch(0.878 0.036 159.268);
  --destructive: oklch(0.657 0.225 30.995);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.375 0.076 153.963);
  --chart-1: oklch(0.375 0.076 153.963);
  --chart-2: oklch(0.294 0.027 157.939);
  --chart-3: oklch(0.372 0.051 156.473);
  --chart-4: oklch(0.327 0.031 157.842);
  --chart-5: oklch(0.379 0.079 153.609);
}