shadcn token

shadcn Zinc Dark in OKLCH

Quick answer: shadcn Zinc Dark is #27272A, which converts to oklch(0.274 0.005 286.00). On white, it has a WCAG contrast ratio of 14.89:1 and an APCA score of Lc +101.77.

This meets the WCAG 2.2 AAA text threshold (7:1) on white. The OKLCH base colors used here are available in shadcn/ui since the Tailwind v4 update (February 2025), with 92% global browser support for OKLCH notation (caniuse, April 2026).

oklch(0.274 0.005 286.00)

shadcn Zinc Dark is a shadcn theme token. This page frames #27272A as a theme token: paste the :root and .dark blocks below to theme every component at once.

  • Specs

    oklch(0.274 0.005 286.00)
    #27272A

    Highest contrast: white

    14.89:1
    Normal AAmeets WCAG 2.2
    Normal AAAmeets WCAG 2.2
    Large AAmeets WCAG 2.2
    Large AAAmeets WCAG 2.2
    Lc +101.77
  • Accessibility lens

    • Base#27272A
    • 300#727275
    • 500#27272A
    • 700#19191C

    Toggle a lens to preview this color under color vision differences.

How does shadcn Zinc Dark go from primitive to component?

  1. Primitive
  2. Semantic
  3. Component

Primitive

The raw value, before it means anything.

hex
#27272A
oklch
oklch(0.274 0.005 286.00)

Semantic

Bound to a role token that UI reads by name.

--primary: #27272A

One primitive feeds the role. --primary then drives --ring and the hover and active states below, so a single value stays in sync everywhere.

Component

Applied to real UI across states.

AAA14.89:1
DefaultSave paletteNew
HoverSave paletteNew
ActiveSave paletteNew
DisabledSave paletteNew

On-color text: white (14.89:1 on #27272A).

How does shadcn Zinc Dark scale from 50 to 950?

shadcn Zinc Dark
50 to 950
#F5F5F6
#C7C7C9
#9B9B9E
#727275
#4B4B4E
#27272A
#202023
#19191C
#131315
#0D0D0E
#070708
  • 50oklch(0.970 0.001 286.38)
  • 100oklch(0.830 0.003 286.34)
  • 200oklch(0.690 0.004 286.29)
  • 300oklch(0.553 0.005 286.25)
  • 400oklch(0.414 0.005 286.18)
  • 500oklch(0.274 0.005 286.03)
  • 600oklch(0.245 0.006 285.98)
  • 700oklch(0.215 0.006 285.90)
  • 800oklch(0.188 0.004 286.01)
  • 900oklch(0.160 0.002 286.16)
  • 950oklch(0.129 0.003 286.03)

How does shadcn Zinc Dark score on WCAG 2.2 contrast?

Every fg × bg combination, with WCAG 2.2 verdicts.

AAA (7:1+)
AA (4.5:1+)
Below AA (under 4.5:1)
Select a pair for ratio and APCA Lc

Does shadcn Zinc Dark pass WCAG 2.2 on common neutral backgrounds?

  • Aa14.89AAA

    White #FFFFFF

  • Aa13.66AAA

    Neutral 100 #F5F5F5

  • Aa11.82AAA

    Neutral 200 #E5E5E5

  • Aa5.90AA

    Neutral 400 #A3A3A3

  • Aa1.90Below AA

    Neutral 600 #525252

  • Aa1.20Below AA

    Neutral 900 #171717

  • Aa1.40Below AA

    Black #000000

What palettes pair with shadcn Zinc Dark?

  • Analogous

    • #27292A
    • #27282A
    • #27272A
    • #28272A
    • #29272A
  • Complementary

    • #4C4C52
    • #27272A
  • Triadic

    • #27272A
    • #1D1D20
    • #2A2727

Where should you use shadcn Zinc Dark in production UI?

bars: primary-500 vs secondary-500
Monthly revenue
$48,219
text: neutral-900
+12.4%accent-50 / accent-700
This period Last period
JanFebMarAprMayJun
bg: primary-500 · fg: white
Step 2 of 3
Export your first design system this week.
Continue white / primary-500Skip for now
bg: accent-50 · fg: accent-700
3 tokens changed
Review them before your next export.
Review changes
avatars: solid fills · tags: tints
Team
MOprimary-500 / whiteJLsecondary-500 / whiteARaccent-500 / white+3neutral-700 / white
Newprimary-500 / whiteLiveaccent-50 / accent-700In reviewsecondary-50 / secondary-700Draftneutral-50 / neutral-700
focus: primary-500 · border: neutral-500
Project name
Paletta web
border: primary-500 · ring: primary-100
Used in exported token names.
primary-500 / whiteInclude dark mode
Add high contrast theme
Create projectprimary-500 / whiteCancel
active tab: primary-600 · rules: neutral-100
All projectsSharedArchived
ProjectStatus
Marketing site
Updated 2h ago
Liveaccent-50 / accent-700
Mobile app
Updated yesterday
In reviewsecondary-50 / secondary-700
Docs
Updated 3d ago
Draftneutral-50 / neutral-700
toggle: primary-500 · progress: secondary-500
Notifications
Weekly digestprimary-500 / card
Product updatesneutral-500
Token quota640 of 1,000
secondary-500 on neutral-50
bg: neutral-900
--primary#27272A
--secondary#545256
--accent#525456
--neutral#787887
line: accent-500
Active users
12,480
+8.1% this weektext: accent-600
icon: secondary-500 · action: primary-600secondary-500 / white
Palette exported
tokens.css is ready to use.
Undo

Notes on shadcn Zinc Dark

Zinc Dark is not really a hue, it is a surface, oklch(0.274 0.005 286) with almost no chroma. In a shadcn theme this is the value behind cards, popovers, and the dark-mode background, the quiet floor everything else sits on. As an ink color it reads at WCAG 2.2 AAA on white (14.89:1, APCA Lc +101.77), so #27272A text or icons on a light page are as legible as near-black. The inverse is the rule you cannot break: on a true black background it lands Below AA (1.40:1), so never set it as text on black, only as the panel that holds lighter text. Its harmonies are nearly meaningless by design; the complementary #4C4C52 is just a lighter charcoal for borders. The accessibility lens leaves it untouched, protanopia, deuteranopia, and tritanopia all land within a shade of #272729, which is exactly what you want from a neutral: it never changes the story for anyone.

shadcn :root block

:root {
  --background: 240 6.7% 97.1%;
  --foreground: 240 5.9% 10%;
  --card: 0 0% 100%;
  --card-foreground: 240 5.9% 10%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 5.9% 10%;
  --primary: 240 3.7% 15.9%;
  --primary-foreground: 240 6.7% 97.1%;
  --secondary: 240 2.7% 92.7%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 2.7% 92.7%;
  --muted-foreground: 240 6.2% 38%;
  --accent: 180 1.1% 82.5%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 72.2% 50.6%;
  --destructive-foreground: 240 6.7% 97.1%;
  --border: 240 4.9% 88%;
  --input: 240 5.9% 50%;
  --ring: 240 3.7% 15.9%;
  --radius: 0.5rem;
}

.dark {
  --background: 240 6.7% 5.9%;
  --foreground: 240 6.7% 97.1%;
  --card: 240 5.9% 10%;
  --card-foreground: 240 6.7% 97.1%;
  --popover: 240 5.9% 10%;
  --popover-foreground: 240 6.7% 97.1%;
  --primary: 240 1.5% 61.4%;
  --primary-foreground: 0 0% 0%;
  --secondary: 240 2.3% 17.3%;
  --secondary-foreground: 240 6.7% 97.1%;
  --muted: 240 2.3% 17.3%;
  --muted-foreground: 240 7.5% 60.6%;
  --accent: 210 2.9% 13.7%;
  --accent-foreground: 240 6.7% 97.1%;
  --destructive: 3.6 84.7% 61.6%;
  --destructive-foreground: 240 6.7% 5.9%;
  --border: 240 6.5% 18%;
  --input: 240 6% 39.2%;
  --ring: 240 1.3% 45.3%;
  --radius: 0.5rem;
}

How do you export shadcn Zinc Dark as design tokens?

Export a W3C DTCG token document for the shadcn Zinc Dark 50 to 950 scale, ready for Style Dictionary or any DTCG aware pipeline.

FAQ

Frequently asked questions

shadcn Zinc Dark (#27272A) is oklch(0.274 0.005 286) in the OKLCH color space.

shadcn Zinc Dark passes WCAG 2.2 AA on white for normal text. Contrast ratios: 14.89:1 on white, 1.4:1 on black.

On white, shadcn Zinc Dark has an APCA Lc of 101.8. On black, Lc is 0. APCA is a perceptual contrast model, not a WCAG compliance standard.

Paste the snippet above into your globals.css (with :root and .dark blocks).

Under deuteranopia (most common, around 5 percent of men), shadcn Zinc Dark simulates to #272729. Under protanopia it shifts to #272729. Under tritanopia it appears as #272929. Always pair color with shape, label, or icon for accessibility.

Ready to build your color system?

Free forever, no credit card, Pro when you need more.

Built by a product designer who ships to code.