Gray 8
gray-8 · #343A40
HEX
#343A40
RGB
rgb(52, 58, 64)
CMYK
cmyk(19%, 9%, 0%, 75%)
HSL
hsl(210, 10%, 23%)
LAB
lab(24.1, -1.0, -4.6)
What is Gray 8?
Gray 8 is the gray-8 reference in the Open Color. Its sRGB value is #343A40 (rgb 52, 58, 64). It sits in the neutral family. Open Color, an open-source color palette by Heeyeun designed for UI work. 13 hues across 10 shades (0 to 9) tuned for screen legibility and accessibility. See disclaimer for accuracy and trademark notes.
Accessibility
WCAG 2.1 contrast checks for Gray 8 as a background.
Black text on this color
White text on this color
Shades, tints & tonal scale of Gray 8
An 11-step tonal scale derived from Gray 8 (#343A40). 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
#EFEFF0
#EFEFF0
100
#DFDFE0
#DFDFE0
200
#BEC0C2
#BEC0C2
300
#9A9DA0
#9A9DA0
400
#676B70
#676B70
500
#343A40
#343A40
600
#2C3136
#2C3136
700
#22262A
#22262A
800
#171A1D
#171A1D
900
#0D0F10
#0D0F10
950
#060708
#060708
Lighter tints (mixed with white)
15%
#75777A
30%
#9A9B9D
45%
#B6B7B8
60%
#CDCECE
75%
#E2E2E2
Darker shades (mixed with black)
15%
#30353B
30%
#2B3035
45%
#252A2F
60%
#1F2327
75%
#171A1E
Color harmonies for Gray 8
Classic color-theory harmonies derived from rotating the hue of Gray 8. Use these to build accent palettes, brand systems, and accessible UI color pairings.
Complementary
180° opposite — strongest contrast
#343A40
#343A40
#413B35
#413B35
Triadic
Three colors 120° apart
#343A40
#343A40
#41353B
#41353B
#3B4135
#3B4135
Analogous
Two neighbors ±30° on the wheel
#354141
#354141
#343A40
#343A40
#353541
#353541
Split-complementary
Base + two colors flanking its complement
#343A40
#343A40
#413535
#413535
#414135
#414135
Tetradic
Two complementary pairs
#343A40
#343A40
#3B3541
#3B3541
#413B35
#413B35
#3B4135
#3B4135
Square
Four colors evenly spaced 90° apart
#343A40
#343A40
#413541
#413541
#413B35
#413B35
#354135
#354135
Gray 8 in every color space
Full conversion of Gray 8 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
#343A40
RGB
rgb(52, 58, 64)
CMYK
cmyk(19%, 9%, 0%, 75%)
HSL
hsl(210, 10%, 23%)
HSV
hsv(210, 19%, 25%)
HWB
hwb(210 20% 75%)
CIE Lab
lab(24.1 -1.0 -4.6)
OKLCH
oklch(34.5% 0.013 248.2)
XYZ (D65)
xyz(3.85, 4.13, 5.44)
Copy-ready code for Gray 8
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: #343A40;
background-color: #343A40;CSS variable
:root {
--color-gray-8: #343A40;
}Tailwind config
// tailwind.config.js
colors: {
'gray-8': '#343A40',
}Sass
$color-gray-8: #343A40;Swift UIColor
UIColor(red: 0.204, green: 0.227, blue: 0.251, alpha: 1.0)Android XML
<color name="gray-8">#343A40</color>Closest match in every color system
The nearest Gray 8 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 Open Color
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 7026
#2F353B
Granite grey
RAL 6012
#343E40
Black green
RAL 7016
#293133
Anthracite grey
RAL 7015
#434750
Slate grey
RAL 7024
#474A51
Graphite grey
RAL 7031
#474B4E
Blue grey
FAQ about Gray 8
What is the HEX code for Gray 8?
Gray 8 (gray-8) has the HEX code #343A40. In RGB it is rgb(52, 58, 64), and in CMYK it is cmyk(19%, 9%, 0%, 75%).
What is the OKLCH value of Gray 8?
Gray 8 converts to oklch(0.345 0.013 248.2). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.
Is Gray 8 accessible for body text?
Used as a background, Gray 8 has a contrast ratio of 1.83:1 with black text and 11.51: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 8?
The closest Pantone reference to Gray 8 by ΔE2000 perceptual distance is Pantone Black U (#3B3835). 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 8?
The closest RAL Classic reference to Gray 8 by ΔE2000 distance is RAL 7026 (Granite grey, #2F353B). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.
What is the complementary color of Gray 8?
The complementary color (180° opposite on the HSL color wheel) of Gray 8 is #413B35. Use it for high-contrast accents, error states, or call-to-action pairings.
Data provenance & source
Open Color (Yeun)
Open Color, an open-source color palette by Heeyeun designed for UI designers and developers. 13 hues across 10 shades. Use as a designer-friendly palette alternative to Tailwind. Values are intentionally chosen for UI legibility and accessibility.
- Source type
- derived
- Confidence
- high
- License
- MIT
- Last reviewed
- 2026-05-24
Workflow tags
Open Color values are tuned for digital UI. For print, treat as a starting point and proof against the substrate.