HSL(151, 6%, 16%)

Grayish Black — Black color

Adjust Color

Color Information

Color Name

Grayish Black

Color Family

Black

Warm / Cool

🔵 Cool

Temperature

N/A

CSS Class

bg-[hsl(151,6%,16%)]

Color Conversions

Format Value CSS Usage
HSL hsl(151, 6%, 16%) color: hsl(151, 6%, 16%)
HEX #262B29 color: #262B29
RGB rgb(38, 43, 41) color: rgb(38, 43, 41)
CMYK cmyk(12%, 0%, 5%, 83%)
HSV hsv(156, 12%, 17%)
HWB hwb(156 15% 83%) color: hwb(156 15% 83%)
OKLCH oklch(0.2834 0.008 169.8) color: oklch(0.2834 0.008 169.8)
Lab lab(16.99 -2.71 0.55) color: lab(16.99 -2.71 0.55)
LCH lch(16.99 2.77 168.53) color: lch(16.99 2.77 168.53)

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 14.38:1
vs Black 1.46: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)

#282829 — rgb(40, 40, 41)

Deuteranopia (Green-blind)

#28282A — rgb(40, 40, 42)

Tritanopia (Blue-blind)

#262A2A — rgb(38, 42, 42)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(151, 6%, 16%);

text

color: hsl(151, 6%, 16%);

border

border: 2px solid hsl(151, 6%, 16%);

gradient light

background: linear-gradient(to right, hsl(151, 6%, 36%), hsl(151, 6%, 16%));

gradient dark

background: linear-gradient(to right, hsl(151, 6%, 16%), hsl(151, 6%, 0%))

hex

background-color: #262B29;

tailwind

bg-[hsl(151,6%,16%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(151, 6%, 16%, 0.4);

css variable

--color-primary: hsl(151, 6%, 16%);

Related Colors

Use Cases for Grayish Black

UI elements Web design Branding Graphic design Print design

Frequently Asked Questions

What are all the color codes for HSL(151, 6%, 16%)?

HEX: #262B29 | RGB: rgb(38, 43, 41) | CMYK: 12%, 0%, 5%, 83% | HSV: 156°, 12%, 17%. Copy any format from the conversion table above.

What colors go well with #262B29?

The complementary color is HSL(331, 6%, 16%). For a triadic harmony, use hues 151°, 271°, and 31°. For analogous combinations, try hues 121° and 181°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(151, 6%, 16%) in CSS?

As HSL: color: hsl(151, 6%, 16%); — As HEX: color: #262B29; — As RGB: color: rgb(38, 43, 41); — Tailwind CSS: bg-[hsl(151,6%,16%)] — CSS variable: --color-primary: hsl(151, 6%, 16%);