HSL(231, 96%, 34%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(231,96%,34%)]

Color Conversions

Format Value CSS Usage
HSL hsl(231, 96%, 34%) color: hsl(231, 96%, 34%)
HEX #031CAA color: #031CAA
RGB rgb(3, 28, 170) color: rgb(3, 28, 170)
CMYK cmyk(98%, 84%, 0%, 33%)
HSV hsv(231, 98%, 67%)
HWB hwb(231 1% 33%) color: hwb(231 1% 33%)
OKLCH oklch(0.3556 0.2162 264.58) color: oklch(0.3556 0.2162 264.58)
Lab lab(22.83 49.03 -74.28) color: lab(22.83 49.03 -74.28)
LCH lch(22.83 89 303.43) color: lch(22.83 89 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 12:1
vs Black 1.75: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)

#0E0E88 — rgb(14, 14, 136)

Deuteranopia (Green-blind)

#0C0B7F — rgb(12, 11, 127)

Tritanopia (Blue-blind)

#046D67 — rgb(4, 109, 103)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(231, 96%, 34%);

text

color: hsl(231, 96%, 34%);

border

border: 2px solid hsl(231, 96%, 34%);

gradient light

background: linear-gradient(to right, hsl(231, 96%, 54%), hsl(231, 96%, 34%));

gradient dark

background: linear-gradient(to right, hsl(231, 96%, 34%), hsl(231, 96%, 14%))

hex

background-color: #031CAA;

tailwind

bg-[hsl(231,96%,34%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(231, 96%, 34%, 0.4);

css variable

--color-primary: hsl(231, 96%, 34%);

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(231, 96%, 34%)?

HEX: #031CAA | RGB: rgb(3, 28, 170) | CMYK: 98%, 84%, 0%, 33% | HSV: 231°, 98%, 67%. Copy any format from the conversion table above.

What colors go well with #031CAA?

The complementary color is HSL(51, 96%, 34%). For a triadic harmony, use hues 231°, 351°, and 111°. For analogous combinations, try hues 201° and 261°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(231, 96%, 34%) in CSS?

As HSL: color: hsl(231, 96%, 34%); — As HEX: color: #031CAA; — As RGB: color: rgb(3, 28, 170); — Tailwind CSS: bg-[hsl(231,96%,34%)] — CSS variable: --color-primary: hsl(231, 96%, 34%);