HSL(242, 98%, 39%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(242,98%,39%)]

Color Conversions

Format Value CSS Usage
HSL hsl(242, 98%, 39%) color: hsl(242, 98%, 39%)
HEX #0802C5 color: #0802C5
RGB rgb(8, 2, 197) color: rgb(8, 2, 197)
CMYK cmyk(96%, 99%, 0%, 23%)
HSV hsv(242, 99%, 77%)
HWB hwb(242 1% 23%) color: hwb(242 1% 23%)
OKLCH oklch(0.3748 0.256 265) color: oklch(0.3748 0.256 265)
Lab lab(24.08 64.82 -88.29) color: lab(24.08 64.82 -88.29)
LCH lch(24.08 109.53 306.29) color: lch(24.08 109.53 306.29)

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 11.51:1
vs Black 1.83: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)

#050596 — rgb(5, 5, 150)

Deuteranopia (Green-blind)

#06068B — rgb(6, 6, 139)

Tritanopia (Blue-blind)

#087168 — rgb(8, 113, 104)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(242, 98%, 39%);

text

color: hsl(242, 98%, 39%);

border

border: 2px solid hsl(242, 98%, 39%);

gradient light

background: linear-gradient(to right, hsl(242, 98%, 59%), hsl(242, 98%, 39%));

gradient dark

background: linear-gradient(to right, hsl(242, 98%, 39%), hsl(242, 98%, 19%))

hex

background-color: #0802C5;

tailwind

bg-[hsl(242,98%,39%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(242, 98%, 39%, 0.4);

css variable

--color-primary: hsl(242, 98%, 39%);

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(242, 98%, 39%)?

HEX: #0802C5 | RGB: rgb(8, 2, 197) | CMYK: 96%, 99%, 0%, 23% | HSV: 242°, 99%, 77%. Copy any format from the conversion table above.

What colors go well with #0802C5?

The complementary color is HSL(62, 98%, 39%). For a triadic harmony, use hues 242°, 2°, and 122°. For analogous combinations, try hues 212° and 272°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(242, 98%, 39%) in CSS?

As HSL: color: hsl(242, 98%, 39%); — As HEX: color: #0802C5; — As RGB: color: rgb(8, 2, 197); — Tailwind CSS: bg-[hsl(242,98%,39%)] — CSS variable: --color-primary: hsl(242, 98%, 39%);