HSL(142, 2%, 15%)

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(142,2%,15%)]

Color Conversions

Format Value CSS Usage
HSL hsl(142, 2%, 15%) color: hsl(142, 2%, 15%)
HEX #252726 color: #252726
RGB rgb(37, 39, 38) color: rgb(37, 39, 38)
CMYK cmyk(5%, 0%, 3%, 85%)
HSV hsv(150, 5%, 15%)
HWB hwb(150 14% 85%) color: hwb(150 14% 85%)
OKLCH oklch(0.2703 0.0034 164.81) color: oklch(0.2703 0.0034 164.81)
Lab lab(15.4 -1.15 0.35) color: lab(15.4 -1.15 0.35)
LCH lch(15.4 1.2 163.07) color: lch(15.4 1.2 163.07)

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 15.03:1
vs Black 1.4: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)

#262626 — rgb(38, 38, 38)

Deuteranopia (Green-blind)

#262626 — rgb(38, 38, 38)

Tritanopia (Blue-blind)

#252626 — rgb(37, 38, 38)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(142, 2%, 15%);

text

color: hsl(142, 2%, 15%);

border

border: 2px solid hsl(142, 2%, 15%);

gradient light

background: linear-gradient(to right, hsl(142, 2%, 35%), hsl(142, 2%, 15%));

gradient dark

background: linear-gradient(to right, hsl(142, 2%, 15%), hsl(142, 2%, 0%))

hex

background-color: #252726;

tailwind

bg-[hsl(142,2%,15%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(142, 2%, 15%, 0.4);

css variable

--color-primary: hsl(142, 2%, 15%);

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(142, 2%, 15%)?

HEX: #252726 | RGB: rgb(37, 39, 38) | CMYK: 5%, 0%, 3%, 85% | HSV: 150°, 5%, 15%. Copy any format from the conversion table above.

What colors go well with #252726?

The complementary color is HSL(322, 2%, 15%). For a triadic harmony, use hues 142°, 262°, and 22°. For analogous combinations, try hues 112° and 172°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(142, 2%, 15%) in CSS?

As HSL: color: hsl(142, 2%, 15%); — As HEX: color: #252726; — As RGB: color: rgb(37, 39, 38); — Tailwind CSS: bg-[hsl(142,2%,15%)] — CSS variable: --color-primary: hsl(142, 2%, 15%);