HSL(230, 82%, 39%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(230,82%,39%)]

Color Conversions

Format Value CSS Usage
HSL hsl(230, 82%, 39%) color: hsl(230, 82%, 39%)
HEX #122DB5 color: #122DB5
RGB rgb(18, 45, 181) color: rgb(18, 45, 181)
CMYK cmyk(90%, 75%, 0%, 29%)
HSV hsv(230, 90%, 71%)
HWB hwb(230 7% 29%) color: hwb(230 7% 29%)
OKLCH oklch(0.3946 0.2117 265.85) color: oklch(0.3946 0.2117 265.85)
Lab lab(27.68 43.96 -72.81) color: lab(27.68 43.96 -72.81)
LCH lch(27.68 85.05 301.12) color: lch(27.68 85.05 301.12)

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 10.15:1
vs Black 2.07: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)

#1E1E94 — rgb(30, 30, 148)

Deuteranopia (Green-blind)

#1C1A8C — rgb(28, 26, 140)

Tritanopia (Blue-blind)

#137A74 — rgb(19, 122, 116)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(230, 82%, 39%);

text

color: hsl(230, 82%, 39%);

border

border: 2px solid hsl(230, 82%, 39%);

gradient light

background: linear-gradient(to right, hsl(230, 82%, 59%), hsl(230, 82%, 39%));

gradient dark

background: linear-gradient(to right, hsl(230, 82%, 39%), hsl(230, 82%, 19%))

hex

background-color: #122DB5;

tailwind

bg-[hsl(230,82%,39%)]

box shadow

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

css variable

--color-primary: hsl(230, 82%, 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(230, 82%, 39%)?

HEX: #122DB5 | RGB: rgb(18, 45, 181) | CMYK: 90%, 75%, 0%, 29% | HSV: 230°, 90%, 71%. Copy any format from the conversion table above.

What colors go well with #122DB5?

The complementary color is HSL(50, 82%, 39%). For a triadic harmony, use hues 230°, 350°, and 110°. For analogous combinations, try hues 200° and 260°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(230, 82%, 39%) in CSS?

As HSL: color: hsl(230, 82%, 39%); — As HEX: color: #122DB5; — As RGB: color: rgb(18, 45, 181); — Tailwind CSS: bg-[hsl(230,82%,39%)] — CSS variable: --color-primary: hsl(230, 82%, 39%);