HSL(245, 87%, 21%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(245,87%,21%)]

Color Conversions

Format Value CSS Usage
HSL hsl(245, 87%, 21%) color: hsl(245, 87%, 21%)
HEX #0F0764 color: #0F0764
RGB rgb(15, 7, 100) color: rgb(15, 7, 100)
CMYK cmyk(85%, 93%, 0%, 61%)
HSV hsv(245, 93%, 39%)
HWB hwb(245 3% 61%) color: hwb(245 3% 61%)
OKLCH oklch(0.2436 0.147 271.06) color: oklch(0.2436 0.147 271.06)
Lab lab(10.36 36.5 -50.83) color: lab(10.36 36.5 -50.83)
LCH lch(10.36 62.58 305.68) color: lch(10.36 62.58 305.68)

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.01:1
vs Black 1.23: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)

#0C0B4D — rgb(12, 11, 77)

Deuteranopia (Green-blind)

#0C0D48 — rgb(12, 13, 72)

Tritanopia (Blue-blind)

#0F3C38 — rgb(15, 60, 56)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(245, 87%, 21%);

text

color: hsl(245, 87%, 21%);

border

border: 2px solid hsl(245, 87%, 21%);

gradient light

background: linear-gradient(to right, hsl(245, 87%, 41%), hsl(245, 87%, 21%));

gradient dark

background: linear-gradient(to right, hsl(245, 87%, 21%), hsl(245, 87%, 1%))

hex

background-color: #0F0764;

tailwind

bg-[hsl(245,87%,21%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(245, 87%, 21%, 0.4);

css variable

--color-primary: hsl(245, 87%, 21%);

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(245, 87%, 21%)?

HEX: #0F0764 | RGB: rgb(15, 7, 100) | CMYK: 85%, 93%, 0%, 61% | HSV: 245°, 93%, 39%. Copy any format from the conversion table above.

What colors go well with #0F0764?

The complementary color is HSL(65, 87%, 21%). For a triadic harmony, use hues 245°, 5°, and 125°. For analogous combinations, try hues 215° and 275°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(245, 87%, 21%) in CSS?

As HSL: color: hsl(245, 87%, 21%); — As HEX: color: #0F0764; — As RGB: color: rgb(15, 7, 100); — Tailwind CSS: bg-[hsl(245,87%,21%)] — CSS variable: --color-primary: hsl(245, 87%, 21%);