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
White text on this color
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.
50
#EDEEEF
#EDEEEF
100
#DBDDDF
#DBDDDF
200
#B7BBBF
#B7BBBF
300
#8F949B
#8F949B
400
#575F69
#575F69
500
#1F2937
#1F2937
600
#1A232F
#1A232F
700
#141B24
#141B24
800
#0E1219
#0E1219
900
#080A0E
#080A0E
950
#040507
#040507
Lighter tints (mixed with white)
15%
#707276
30%
#97989B
45%
#B4B5B7
60%
#CCCDCE
75%
#E1E1E2
Darker shades (mixed with black)
15%
#1C2532
30%
#19212D
45%
#151D28
60%
#111821
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
#1F2937
#1F2937
#372D1F
#372D1F
Triadic
Three colors 120° apart
#1F2937
#1F2937
#371F29
#371F29
#29371F
#29371F
Analogous
Two neighbors ±30° on the wheel
#1F3537
#1F3537
#1F2937
#1F2937
#211F37
#211F37
Split-complementary
Base + two colors flanking its complement
#1F2937
#1F2937
#37211F
#37211F
#35371F
#35371F
Tetradic
Two complementary pairs
#1F2937
#1F2937
#2D1F37
#2D1F37
#372D1F
#372D1F
#29371F
#29371F
Square
Four colors evenly spaced 90° apart
#1F2937
#1F2937
#371F35
#371F35
#372D1F
#372D1F
#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.
Closest Pantone matches
Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.
Closest RAL Classic matches
Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.
RAL 5020
#1D334A
Ocean blue
RAL 5008
#26252D
Grey blue
RAL 7026
#2F353B
Granite grey
RAL 7021
#23282B
Black grey
RAL 5010
#0E294B
Gentian blue
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 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.