HSL(229, 62%, 15%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(229,62%,15%)]

Color Conversions

Format Value CSS Usage
HSL hsl(229, 62%, 15%) color: hsl(229, 62%, 15%)
HEX #0F173E color: #0F173E
RGB rgb(15, 23, 62) color: rgb(15, 23, 62)
CMYK cmyk(76%, 63%, 0%, 76%)
HSV hsv(230, 76%, 24%)
HWB hwb(230 6% 76%) color: hwb(230 6% 76%)
OKLCH oklch(0.2243 0.0752 270.46) color: oklch(0.2243 0.0752 270.46)
Lab lab(9.5 11.86 -26.14) color: lab(9.5 11.86 -26.14)
LCH lch(9.5 28.7 294.4) color: lch(9.5 28.7 294.4)

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 17.32:1
vs Black 1.21: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)

#121335 — rgb(18, 19, 53)

Deuteranopia (Green-blind)

#121132 — rgb(18, 17, 50)

Tritanopia (Blue-blind)

#0F2D2B — rgb(15, 45, 43)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(229, 62%, 15%);

text

color: hsl(229, 62%, 15%);

border

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

gradient light

background: linear-gradient(to right, hsl(229, 62%, 35%), hsl(229, 62%, 15%));

gradient dark

background: linear-gradient(to right, hsl(229, 62%, 15%), hsl(229, 62%, 0%))

hex

background-color: #0F173E;

tailwind

bg-[hsl(229,62%,15%)]

box shadow

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

css variable

--color-primary: hsl(229, 62%, 15%);

Related Colors

Use Cases for Blue

Corporate branding Trust signals Tech products Social media Primary buttons

Frequently Asked Questions

What are all the color codes for HSL(229, 62%, 15%)?

HEX: #0F173E | RGB: rgb(15, 23, 62) | CMYK: 76%, 63%, 0%, 76% | HSV: 230°, 76%, 24%. Copy any format from the conversion table above.

What colors go well with #0F173E?

The complementary color is HSL(49, 62%, 15%). For a triadic harmony, use hues 229°, 349°, and 109°. For analogous combinations, try hues 199° and 259°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(229, 62%, 15%) in CSS?

As HSL: color: hsl(229, 62%, 15%); — As HEX: color: #0F173E; — As RGB: color: rgb(15, 23, 62); — Tailwind CSS: bg-[hsl(229,62%,15%)] — CSS variable: --color-primary: hsl(229, 62%, 15%);