#1f4037 is a shadcn/ui theme built around a deep teal primary color (#1f4138) with muted light teal accents (#d2dbd8). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#1f4138) on a teal-tinted background (#050f0d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050f0dblack |
| Foreground | #020806black | #ffffffwhite |
| Card | #ffffffwhite | #050f0dblack |
| Card foreground | #020806black | #ffffffwhite |
| Popover | #f7fdfbmintcream | #050f0dblack |
| Popover foreground | #020806black | #ffffffwhite |
| Primary | #1f4138darkslategray | #1f4138darkslategray |
| Primary foreground | #b7dcd2powderblue | #b7dcd2powderblue |
| Secondary | #e8e8e8lavender | #1c2120black |
| Secondary foreground | #4e504fdarkslategray | #b3bdbasilver |
| Muted | #dff1eclavender | #0e201bblack |
| Muted foreground | #4a645ddimgray | #9bb5aedarkgray |
| Accent | #d2dbd8lightgrey | #2b3b37darkslategray |
| Accent foreground | #364440darkslategray | #c4d4d0lightgrey |
| Destructive | #d01800firebrick | #e62c14orangered |
| Destructive foreground | #fff3f2lavenderblush | #ffffffwhite |
| Border | #e9eceblavender | #181b1ablack |
| Input | #e9eceblavender | #181b1ablack |
| Ring | #1f4138darkslategray | #1f4138darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 6.64:1 | AA |
| Muted text | 5.48:1 | AA |
| Accent | 7.20:1 | AAA |
| Destructive | 5.07:1 | AA |
| Text on background | 19.40:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 8.48:1 | AAA |
| Muted text | 7.73:1 | AAA |
| Accent | 7.69:1 | AAA |
| Destructive | 4.43:1 | AA Large |
Paste this into your globals.css to use #1f4037 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.014 178.883);
--muted: oklch(0.944 0.02 178.149);
--muted-foreground: oklch(0.479 0.033 176.626);
--popover: oklch(0.989 0.007 178.585);
--popover-foreground: oklch(0.124 0.014 178.883);
--card: oklch(1 0 180);
--card-foreground: oklch(0.124 0.014 178.883);
--border: oklch(0.941 0.003 178.685);
--input: oklch(0.941 0.003 178.685);
--primary: oklch(0.348 0.043 174.336);
--primary-foreground: oklch(0.865 0.042 177.32);
--secondary: oklch(0.931 0.001 178.768);
--secondary-foreground: oklch(0.429 0.002 178.638);
--accent: oklch(0.883 0.01 178.448);
--accent-foreground: oklch(0.373 0.018 177.278);
--destructive: oklch(0.546 0.214 30.722);
--destructive-foreground: oklch(0.973 0.013 26.532);
--ring: oklch(0.348 0.043 174.336);
--chart-1: oklch(0.348 0.043 174.336);
--chart-2: oklch(0.931 0.001 178.768);
--chart-3: oklch(0.883 0.01 178.448);
--chart-4: oklch(0.954 0 178.773);
--chart-5: oklch(0.352 0.046 173.967);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.017 176.544);
--foreground: oklch(1 0 180);
--muted: oklch(0.226 0.026 174.704);
--muted-foreground: oklch(0.752 0.03 177.579);
--popover: oklch(0.158 0.017 176.544);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.158 0.017 176.544);
--card-foreground: oklch(1 0 180);
--border: oklch(0.219 0.006 178.017);
--input: oklch(0.219 0.006 178.017);
--primary: oklch(0.348 0.043 174.336);
--primary-foreground: oklch(0.865 0.042 177.32);
--secondary: oklch(0.242 0.007 177.969);
--secondary-foreground: oklch(0.788 0.012 178.352);
--accent: oklch(0.336 0.021 176.814);
--accent-foreground: oklch(0.856 0.017 178.187);
--destructive: oklch(0.598 0.222 30.977);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.348 0.043 174.336);
--chart-1: oklch(0.348 0.043 174.336);
--chart-2: oklch(0.242 0.007 177.969);
--chart-3: oklch(0.336 0.021 176.814);
--chart-4: oklch(0.275 0.008 177.915);
--chart-5: oklch(0.352 0.046 173.967);
}