HSL(242, 88%, 36%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(242,88%,36%)]

Color Conversions

Format Value CSS Usage
HSL hsl(242, 88%, 36%) color: hsl(242, 88%, 36%)
HEX #100BAD color: #100BAD
RGB rgb(16, 11, 173) color: rgb(16, 11, 173)
CMYK cmyk(91%, 94%, 0%, 32%)
HSV hsv(242, 94%, 68%)
HWB hwb(242 4% 32%) color: hwb(242 4% 32%)
OKLCH oklch(0.3482 0.227 266.66) color: oklch(0.3482 0.227 266.66)
Lab lab(21.45 56.53 -78.38) color: lab(21.45 56.53 -78.38)
LCH lch(21.45 96.64 305.8) color: lch(21.45 96.64 305.8)

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 12.55:1
vs Black 1.67: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)

#0E0E86 — rgb(14, 14, 134)

Deuteranopia (Green-blind)

#0E0F7C — rgb(14, 15, 124)

Tritanopia (Blue-blind)

#106760 — rgb(16, 103, 96)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(242, 88%, 36%);

text

color: hsl(242, 88%, 36%);

border

border: 2px solid hsl(242, 88%, 36%);

gradient light

background: linear-gradient(to right, hsl(242, 88%, 56%), hsl(242, 88%, 36%));

gradient dark

background: linear-gradient(to right, hsl(242, 88%, 36%), hsl(242, 88%, 16%))

hex

background-color: #100BAD;

tailwind

bg-[hsl(242,88%,36%)]

box shadow

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

css variable

--color-primary: hsl(242, 88%, 36%);

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, 88%, 36%)?

HEX: #100BAD | RGB: rgb(16, 11, 173) | CMYK: 91%, 94%, 0%, 32% | HSV: 242°, 94%, 68%. Copy any format from the conversion table above.

What colors go well with #100BAD?

The complementary color is HSL(62, 88%, 36%). 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, 88%, 36%) in CSS?

As HSL: color: hsl(242, 88%, 36%); — As HEX: color: #100BAD; — As RGB: color: rgb(16, 11, 173); — Tailwind CSS: bg-[hsl(242,88%,36%)] — CSS variable: --color-primary: hsl(242, 88%, 36%);