Skip to main content
Developer ToolsFounded 2008

GitHub Brand Colors

GitHub's black-and-white developer aesthetic is clean, neutral, and universally readable in both light and dark modes.

github.com

Brand Palette

#24292F
#FFFFFF
#0969DA
#1A7F37

Primary Text

Background

Links / Actions

Success

Color Values

GitHub Black

Primary Text

HEX
#24292F
RGB
rgb(36, 41, 47)
HSL
hsl(213, 13%, 16%)

Accessibility

on White14.65:1AAA
on Black1.43:1Fail
Open contrast checker →

GitHub White

Background

HEX
#FFFFFF
RGB
rgb(255, 255, 255)
HSL
hsl(0, 0%, 100%)

Accessibility

on White1:1Fail
on Black21:1AAA
Open contrast checker →

GitHub Blue

Links / Actions

HEX
#0969DA
RGB
rgb(9, 105, 218)
HSL
hsl(212, 92%, 45%)

Accessibility

on White5.19:1AA
on Black4.04:1AA Large
Open contrast checker →

GitHub Green

Success

HEX
#1A7F37
RGB
rgb(26, 127, 55)
HSL
hsl(137, 66%, 30%)

Accessibility

on White5.08:1AA
on Black4.13:1AA Large
Open contrast checker →

Accessibility Analysis

Coloron Whiteon Black
GitHub Black
14.65:1AAA
1.43:1Fail
GitHub White
1:1Fail
21:1AAA
GitHub Blue
5.19:1AA
4.04:1AA Large
GitHub Green
5.08:1AA
4.13:1AA Large

WCAG AA requires 4.5:1 for normal text. AA Large requires 3:1 for large text (18pt+) and UI components. AAA requires 7:1.

CSS Implementation

:root {
  --github-github-black: #24292F;
  --github-github-white: #FFFFFF;
  --github-github-blue: #0969DA;
  --github-github-green: #1A7F37;
}

/* Usage example */
.btn-primary {
  background-color: var(--github-github-black);
  color: #ffffff;
}

Similar Color Alternatives

Named colors visually closest to GitHub's primary color — useful for approximations or accessible substitutes.

Design Notes

Color Psychology

GitHub uses a dark palette anchored by GitHub Black (#24292F). Developer tool brands favor minimal, high-contrast palettes — monochrome with one functional accent — reflecting the code aesthetic.

Design Principles

  • High contrast ratios ensure legibility across all contexts
  • Multi-color system allows segmentation across products and sub-brands
  • Primary color meets WCAG AA — usable for text and UI components

Explore Individual Colors

Tags

developeropen-sourcecodetech

More Developer Tools Brand Colors

Frequently Asked Questions

What are GitHub's official brand colors?
GitHub's official brand colors are: GitHub Black (#24292F), GitHub White (#FFFFFF), GitHub Blue (#0969DA), GitHub Green (#1A7F37).
What is GitHub's primary color hex code?
GitHub's primary brand color is GitHub Black with hex code #24292F.
What are the RGB values for GitHub's primary color?
GitHub Black (#24292F) has RGB values of rgb(36, 41, 47).
What is the HSL value of GitHub's primary color?
GitHub Black has an HSL value of hsl(213, 13%, 16%).
Is GitHub's primary color WCAG accessible?
GitHub Black (#24292F) has a contrast ratio of 14.65:1 on white, which passes WCAG AAA.
What industry is GitHub in?
GitHub operates in the Developer Tools industry, founded in 2008.