Skip to content
PantoneTools
neutral
Open Color

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

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

White text on this color

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

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.

Copied #EFEFF0

50

#EFEFF0

#EFEFF0

Copied #DFDFE0

100

#DFDFE0

#DFDFE0

Copied #BEC0C2

200

#BEC0C2

#BEC0C2

Copied #9A9DA0

300

#9A9DA0

#9A9DA0

Copied #676B70

400

#676B70

#676B70

Copied #343A40

500

#343A40

#343A40

Copied #2C3136

600

#2C3136

#2C3136

Copied #22262A

700

#22262A

#22262A

Copied #171A1D

800

#171A1D

#171A1D

Copied #0D0F10

900

#0D0F10

#0D0F10

Copied #060708

950

#060708

#060708

Lighter tints (mixed with white)

Copied #75777A

15%

#75777A

Copied #9A9B9D

30%

#9A9B9D

Copied #B6B7B8

45%

#B6B7B8

Copied #CDCECE

60%

#CDCECE

Copied #E2E2E2

75%

#E2E2E2

Darker shades (mixed with black)

Copied #30353B

15%

#30353B

Copied #2B3035

30%

#2B3035

Copied #252A2F

45%

#252A2F

Copied #1F2327

60%

#1F2327

Copied #171A1E

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

Copied #343A40

#343A40

#343A40

Copied #413B35

#413B35

#413B35

Triadic

Three colors 120° apart

Copied #343A40

#343A40

#343A40

Copied #41353B

#41353B

#41353B

Copied #3B4135

#3B4135

#3B4135

Analogous

Two neighbors ±30° on the wheel

Copied #354141

#354141

#354141

Copied #343A40

#343A40

#343A40

Copied #353541

#353541

#353541

Split-complementary

Base + two colors flanking its complement

Copied #343A40

#343A40

#343A40

Copied #413535

#413535

#413535

Copied #414135

#414135

#414135

Tetradic

Two complementary pairs

Copied #343A40

#343A40

#343A40

Copied #3B3541

#3B3541

#3B3541

Copied #413B35

#413B35

#413B35

Copied #3B4135

#3B4135

#3B4135

Square

Four colors evenly spaced 90° apart

Copied #343A40

#343A40

#343A40

Copied #413541

#413541

#413541

Copied #413B35

#413B35

#413B35

Copied #354135

#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.

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 #2F353B

RAL 7026

#2F353B

Granite grey

Copied #343E40

RAL 6012

#343E40

Black green

Copied #293133

RAL 7016

#293133

Anthracite grey

Copied #434750

RAL 7015

#434750

Slate grey

Copied #474A51

RAL 7024

#474A51

Graphite grey

Copied #474B4E

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
design-token
ui
neutral

Open Color values are tuned for digital UI. For print, treat as a starting point and proof against the substrate.

Open Color · Gray 8 — #343A40 | PantoneTools