HSL(238, 70%, 47%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(238,70%,47%)]

Color Conversions

Format Value CSS Usage
HSL hsl(238, 70%, 47%) color: hsl(238, 70%, 47%)
HEX #242ACC color: #242ACC
RGB rgb(36, 42, 204) color: rgb(36, 42, 204)
CMYK cmyk(82%, 79%, 0%, 20%)
HSV hsv(238, 82%, 80%)
HWB hwb(238 14% 20%) color: hwb(238 14% 20%)
OKLCH oklch(0.423 0.2372 269.05) color: oklch(0.423 0.2372 269.05)
Lab lab(30.37 54.05 -81.88) color: lab(30.37 54.05 -81.88)
LCH lch(30.37 98.11 303.43) color: lch(30.37 98.11 303.43)

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 9.22:1
vs Black 2.28: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)

#2727A5 — rgb(39, 39, 165)

Deuteranopia (Green-blind)

#26269B — rgb(38, 38, 155)

Tritanopia (Blue-blind)

#24867F — rgb(36, 134, 127)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(238, 70%, 47%);

text

color: hsl(238, 70%, 47%);

border

border: 2px solid hsl(238, 70%, 47%);

gradient light

background: linear-gradient(to right, hsl(238, 70%, 67%), hsl(238, 70%, 47%));

gradient dark

background: linear-gradient(to right, hsl(238, 70%, 47%), hsl(238, 70%, 27%))

hex

background-color: #242ACC;

tailwind

bg-[hsl(238,70%,47%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(238, 70%, 47%, 0.4);

css variable

--color-primary: hsl(238, 70%, 47%);

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(238, 70%, 47%)?

HEX: #242ACC | RGB: rgb(36, 42, 204) | CMYK: 82%, 79%, 0%, 20% | HSV: 238°, 82%, 80%. Copy any format from the conversion table above.

What colors go well with #242ACC?

The complementary color is HSL(58, 70%, 47%). For a triadic harmony, use hues 238°, 358°, and 118°. For analogous combinations, try hues 208° and 268°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(238, 70%, 47%) in CSS?

As HSL: color: hsl(238, 70%, 47%); — As HEX: color: #242ACC; — As RGB: color: rgb(36, 42, 204); — Tailwind CSS: bg-[hsl(238,70%,47%)] — CSS variable: --color-primary: hsl(238, 70%, 47%);