HSL(252, 34%, 9%)

Very Dark Blue — Blue color

Adjust Color

Color Information

Color Name

Very Dark Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(252,34%,9%)]

Color Conversions

Format Value CSS Usage
HSL hsl(252, 34%, 9%) color: hsl(252, 34%, 9%)
HEX #120F1F color: #120F1F
RGB rgb(18, 15, 31) color: rgb(18, 15, 31)
CMYK cmyk(42%, 52%, 0%, 88%)
HSV hsv(251, 52%, 12%)
HWB hwb(251 6% 88%) color: hwb(251 6% 88%)
OKLCH oklch(0.1811 0.0325 291.42) color: oklch(0.1811 0.0325 291.42)
Lab lab(5.14 5.18 -10.08) color: lab(5.14 5.18 -10.08)
LCH lch(5.14 11.33 297.2) color: lch(5.14 11.33 297.2)

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 18.85:1
vs Black 1.11: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)

#11111B — rgb(17, 17, 27)

Deuteranopia (Green-blind)

#11111A — rgb(17, 17, 26)

Tritanopia (Blue-blind)

#121817 — rgb(18, 24, 23)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(252, 34%, 9%);

text

color: hsl(252, 34%, 9%);

border

border: 2px solid hsl(252, 34%, 9%);

gradient light

background: linear-gradient(to right, hsl(252, 34%, 29%), hsl(252, 34%, 9%));

gradient dark

background: linear-gradient(to right, hsl(252, 34%, 9%), hsl(252, 34%, 0%))

hex

background-color: #120F1F;

tailwind

bg-[hsl(252,34%,9%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(252, 34%, 9%, 0.4);

css variable

--color-primary: hsl(252, 34%, 9%);

Related Colors

Use Cases for Very Dark Blue

Corporate branding Trust signals Tech products Social media Primary buttons

Frequently Asked Questions

What are all the color codes for HSL(252, 34%, 9%)?

HEX: #120F1F | RGB: rgb(18, 15, 31) | CMYK: 42%, 52%, 0%, 88% | HSV: 251°, 52%, 12%. Copy any format from the conversion table above.

What colors go well with #120F1F?

The complementary color is HSL(72, 34%, 9%). For a triadic harmony, use hues 252°, 12°, and 132°. For analogous combinations, try hues 222° and 282°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(252, 34%, 9%) in CSS?

As HSL: color: hsl(252, 34%, 9%); — As HEX: color: #120F1F; — As RGB: color: rgb(18, 15, 31); — Tailwind CSS: bg-[hsl(252,34%,9%)] — CSS variable: --color-primary: hsl(252, 34%, 9%);