HSL(271, 7%, 22%)

Grayish Gray — Gray color

Adjust Color

Color Information

Color Name

Grayish Gray

Color Family

Gray

Warm / Cool

🔵 Cool

Temperature

N/A

CSS Class

bg-[hsl(271,7%,22%)]

Color Conversions

Format Value CSS Usage
HSL hsl(271, 7%, 22%) color: hsl(271, 7%, 22%)
HEX #38343C color: #38343C
RGB rgb(56, 52, 60) color: rgb(56, 52, 60)
CMYK cmyk(7%, 13%, 0%, 76%)
HSV hsv(270, 13%, 24%)
HWB hwb(270 21% 76%) color: hwb(270 21% 76%)
OKLCH oklch(0.3323 0.0149 307.96) color: oklch(0.3323 0.0149 307.96)
Lab lab(22.38 3.62 -4.37) color: lab(22.38 3.62 -4.37)
LCH lch(22.38 5.67 309.64) color: lch(22.38 5.67 309.64)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 12.18:1
vs Black 1.72:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#36363A — rgb(54, 54, 58)

Deuteranopia (Green-blind)

#37373A — rgb(55, 55, 58)

Tritanopia (Blue-blind)

#383938 — rgb(56, 57, 56)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(271, 7%, 22%);

text

color: hsl(271, 7%, 22%);

border

border: 2px solid hsl(271, 7%, 22%);

gradient light

background: linear-gradient(to right, hsl(271, 7%, 42%), hsl(271, 7%, 22%));

gradient dark

background: linear-gradient(to right, hsl(271, 7%, 22%), hsl(271, 7%, 2%))

hex

background-color: #38343C;

tailwind

bg-[hsl(271,7%,22%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(271, 7%, 22%, 0.4);

css variable

--color-primary: hsl(271, 7%, 22%);

Related Colors

Use Cases for Grayish Gray

Neutral backgrounds Body text Borders Secondary buttons Disabled states

Frequently Asked Questions

What are all the color codes for HSL(271, 7%, 22%)?

HEX: #38343C | RGB: rgb(56, 52, 60) | CMYK: 7%, 13%, 0%, 76% | HSV: 270°, 13%, 24%. Copy any format from the conversion table above.

What colors go well with #38343C?

The complementary color is HSL(91, 7%, 22%). For a triadic harmony, use hues 271°, 31°, and 151°. For analogous combinations, try hues 241° and 301°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(271, 7%, 22%) in CSS?

As HSL: color: hsl(271, 7%, 22%); — As HEX: color: #38343C; — As RGB: color: rgb(56, 52, 60); — Tailwind CSS: bg-[hsl(271,7%,22%)] — CSS variable: --color-primary: hsl(271, 7%, 22%);