HSL(233, 29%, 31%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(233, 29%, 31%) color: hsl(233, 29%, 31%)
HEX #383D66 color: #383D66
RGB rgb(56, 61, 102) color: rgb(56, 61, 102)
CMYK cmyk(45%, 40%, 0%, 60%)
HSV hsv(233, 45%, 40%)
HWB hwb(233 22% 60%) color: hwb(233 22% 60%)
OKLCH oklch(0.3754 0.0703 277.17) color: oklch(0.3754 0.0703 277.17)
Lab lab(27.12 9.81 -24.78) color: lab(27.12 9.81 -24.78)
LCH lch(27.12 26.65 291.6) color: lch(27.12 26.65 291.6)

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.36:1
vs Black 2.03: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)

#3A3A5C — rgb(58, 58, 92)

Deuteranopia (Green-blind)

#3A3A5A — rgb(58, 58, 90)

Tritanopia (Blue-blind)

#385453 — rgb(56, 84, 83)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

background: linear-gradient(to right, hsl(233, 29%, 51%), hsl(233, 29%, 31%));

gradient dark

background: linear-gradient(to right, hsl(233, 29%, 31%), hsl(233, 29%, 11%))

hex

background-color: #383D66;

tailwind

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

box shadow

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

css variable

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

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, 29%, 31%)?

HEX: #383D66 | RGB: rgb(56, 61, 102) | CMYK: 45%, 40%, 0%, 60% | HSV: 233°, 45%, 40%. Copy any format from the conversion table above.

What colors go well with #383D66?

The complementary color is HSL(53, 29%, 31%). 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, 29%, 31%) in CSS?

As HSL: color: hsl(233, 29%, 31%); — As HEX: color: #383D66; — As RGB: color: rgb(56, 61, 102); — Tailwind CSS: bg-[hsl(233,29%,31%)] — CSS variable: --color-primary: hsl(233, 29%, 31%);