HSL(233, 31%, 33%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(233,31%,33%)]

Color Conversions

Format Value CSS Usage
HSL hsl(233, 31%, 33%) color: hsl(233, 31%, 33%)
HEX #3A406E color: #3A406E
RGB rgb(58, 64, 110) color: rgb(58, 64, 110)
CMYK cmyk(47%, 42%, 0%, 57%)
HSV hsv(233, 47%, 43%)
HWB hwb(233 23% 57%) color: hwb(233 23% 57%)
OKLCH oklch(0.3888 0.0781 276.5) color: oklch(0.3888 0.0781 276.5)
Lab lab(28.62 11 -27.52) color: lab(28.62 11 -27.52)
LCH lch(28.62 29.64 291.79) color: lch(28.62 29.64 291.79)

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.82:1
vs Black 2.14: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)

#3D3D63 — rgb(61, 61, 99)

Deuteranopia (Green-blind)

#3C3C60 — rgb(60, 60, 96)

Tritanopia (Blue-blind)

#3A5A58 — rgb(58, 90, 88)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(233, 31%, 33%);

text

color: hsl(233, 31%, 33%);

border

border: 2px solid hsl(233, 31%, 33%);

gradient light

background: linear-gradient(to right, hsl(233, 31%, 53%), hsl(233, 31%, 33%));

gradient dark

background: linear-gradient(to right, hsl(233, 31%, 33%), hsl(233, 31%, 13%))

hex

background-color: #3A406E;

tailwind

bg-[hsl(233,31%,33%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(233, 31%, 33%, 0.4);

css variable

--color-primary: hsl(233, 31%, 33%);

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(233, 31%, 33%)?

HEX: #3A406E | RGB: rgb(58, 64, 110) | CMYK: 47%, 42%, 0%, 57% | HSV: 233°, 47%, 43%. Copy any format from the conversion table above.

What colors go well with #3A406E?

The complementary color is HSL(53, 31%, 33%). For a triadic harmony, use hues 233°, 353°, and 113°. For analogous combinations, try hues 203° and 263°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(233, 31%, 33%) in CSS?

As HSL: color: hsl(233, 31%, 33%); — As HEX: color: #3A406E; — As RGB: color: rgb(58, 64, 110); — Tailwind CSS: bg-[hsl(233,31%,33%)] — CSS variable: --color-primary: hsl(233, 31%, 33%);