Skip to content
PantoneTools
neutral
Tailwind CSS palette

Gray 800

gray-800 · #1F2937

HEX

#1F2937

RGB

rgb(31, 41, 55)

CMYK

cmyk(44%, 25%, 0%, 78%)

HSL

hsl(215, 28%, 17%)

LAB

lab(16.3, 0.0, -10.4)

What is Gray 800?

Gray 800 is the gray-800 reference in the Tailwind CSS palette. Its sRGB value is #1F2937 (rgb 31, 41, 55). It sits in the neutral family. The default color palette shipped with Tailwind CSS v3 by Tailwind Labs. 22 color families across 11 lightness steps (50 to 950). See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Gray 800 as a background.

Black text on this color

Sample text · 1.43 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 14.68 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Gray 800

An 11-step tonal scale derived from Gray 800 (#1F2937). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #EDEEEF

50

#EDEEEF

#EDEEEF

Copied #DBDDDF

100

#DBDDDF

#DBDDDF

Copied #B7BBBF

200

#B7BBBF

#B7BBBF

Copied #8F949B

300

#8F949B

#8F949B

Copied #575F69

400

#575F69

#575F69

Copied #1F2937

500

#1F2937

#1F2937

Copied #1A232F

600

#1A232F

#1A232F

Copied #141B24

700

#141B24

#141B24

Copied #0E1219

800

#0E1219

#0E1219

Copied #080A0E

900

#080A0E

#080A0E

Copied #040507

950

#040507

#040507

Lighter tints (mixed with white)

Copied #707276

15%

#707276

Copied #97989B

30%

#97989B

Copied #B4B5B7

45%

#B4B5B7

Copied #CCCDCE

60%

#CCCDCE

Copied #E1E1E2

75%

#E1E1E2

Darker shades (mixed with black)

Copied #1C2532

15%

#1C2532

Copied #19212D

30%

#19212D

Copied #151D28

45%

#151D28

Copied #111821

60%

#111821

Copied #0B1119

75%

#0B1119

Color harmonies for Gray 800

Classic color-theory harmonies derived from rotating the hue of Gray 800. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #1F2937

#1F2937

#1F2937

Copied #372D1F

#372D1F

#372D1F

Triadic

Three colors 120° apart

Copied #1F2937

#1F2937

#1F2937

Copied #371F29

#371F29

#371F29

Copied #29371F

#29371F

#29371F

Analogous

Two neighbors ±30° on the wheel

Copied #1F3537

#1F3537

#1F3537

Copied #1F2937

#1F2937

#1F2937

Copied #211F37

#211F37

#211F37

Split-complementary

Base + two colors flanking its complement

Copied #1F2937

#1F2937

#1F2937

Copied #37211F

#37211F

#37211F

Copied #35371F

#35371F

#35371F

Tetradic

Two complementary pairs

Copied #1F2937

#1F2937

#1F2937

Copied #2D1F37

#2D1F37

#2D1F37

Copied #372D1F

#372D1F

#372D1F

Copied #29371F

#29371F

#29371F

Square

Four colors evenly spaced 90° apart

Copied #1F2937

#1F2937

#1F2937

Copied #371F35

#371F35

#371F35

Copied #372D1F

#372D1F

#372D1F

Copied #1F3721

#1F3721

#1F3721

Gray 800 in every color space

Full conversion of Gray 800 across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#1F2937

RGB

rgb(31, 41, 55)

CMYK

cmyk(44%, 25%, 0%, 78%)

HSL

hsl(215, 28%, 17%)

HSV

hsv(215, 44%, 22%)

HWB

hwb(215 12% 78%)

CIE Lab

lab(16.3 0.0 -10.4)

OKLCH

oklch(27.8% 0.030 256.8)

XYZ (D65)

xyz(2.05, 2.15, 3.92)

Copy-ready code for Gray 800

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #1F2937;
background-color: #1F2937;

CSS variable

:root {
  --color-gray-800: #1F2937;
}

Tailwind config

// tailwind.config.js
colors: {
  'gray-800': '#1F2937',
}

Sass

$color-gray-800: #1F2937;

Swift UIColor

UIColor(red: 0.122, green: 0.161, blue: 0.216, alpha: 1.0)

Android XML

<color name="gray-800">#1F2937</color>

Closest match in every color system

The nearest Gray 800 equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in Tailwind CSS palette

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #1D334A

RAL 5020

#1D334A

Ocean blue

Copied #26252D

RAL 5008

#26252D

Grey blue

Copied #2F353B

RAL 7026

#2F353B

Granite grey

Copied #23282B

RAL 7021

#23282B

Black grey

Copied #0E294B

RAL 5010

#0E294B

Gentian blue

Copied #293133

RAL 7016

#293133

Anthracite grey

FAQ about Gray 800

What is the HEX code for Gray 800?

Gray 800 (gray-800) has the HEX code #1F2937. In RGB it is rgb(31, 41, 55), and in CMYK it is cmyk(44%, 25%, 0%, 78%).

What is the OKLCH value of Gray 800?

Gray 800 converts to oklch(0.278 0.030 256.8). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Gray 800 accessible for body text?

Used as a background, Gray 800 has a contrast ratio of 1.43:1 with black text and 14.68:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use white text and verify in real UI context.

What is the closest Pantone to Gray 800?

The closest Pantone reference to Gray 800 by ΔE2000 perceptual distance is Pantone Black 6 C (#101820). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Gray 800?

The closest RAL Classic reference to Gray 800 by ΔE2000 distance is RAL 5020 (Ocean blue, #1D334A). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Gray 800?

The complementary color (180° opposite on the HSL color wheel) of Gray 800 is #372D1F. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

Tailwind CSS default palette (v3)

The default color palette shipped with Tailwind CSS v3 by Tailwind Labs Inc. Use as a reference for design tokens, web color systems, and Tailwind-based design conversations. Names like 'blue-500' are the project's own naming convention.

Source type
derived
Confidence
high
License
MIT
Last reviewed
2026-05-24

Workflow tags

tailwind
design-token
web-system
neutral

Tailwind palette values are designed for digital interfaces under sRGB. For print, convert to a process-appropriate value and proof against the substrate; do not rely on sRGB CMYK conversion for color-critical print work.

Tailwind CSS palette · Gray 800 — #1F2937 | PantoneTools