HSL(237, 38%, 27%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(237,38%,27%)]

Color Conversions

Format Value CSS Usage
HSL hsl(237, 38%, 27%) color: hsl(237, 38%, 27%)
HEX #2B2D5F color: #2B2D5F
RGB rgb(43, 45, 95) color: rgb(43, 45, 95)
CMYK cmyk(55%, 53%, 0%, 63%)
HSV hsv(238, 55%, 37%)
HWB hwb(238 17% 63%) color: hwb(238 17% 63%)
OKLCH oklch(0.3238 0.087 278.63) color: oklch(0.3238 0.087 278.63)
Lab lab(20.89 14.9 -30.2) color: lab(20.89 14.9 -30.2)
LCH lch(20.89 33.68 296.26) color: lch(20.89 33.68 296.26)

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.78:1
vs Black 1.64: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)

#2C2C53 — rgb(44, 44, 83)

Deuteranopia (Green-blind)

#2C2C50 — rgb(44, 44, 80)

Tritanopia (Blue-blind)

#2B4947 — rgb(43, 73, 71)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(237, 38%, 27%);

text

color: hsl(237, 38%, 27%);

border

border: 2px solid hsl(237, 38%, 27%);

gradient light

background: linear-gradient(to right, hsl(237, 38%, 47%), hsl(237, 38%, 27%));

gradient dark

background: linear-gradient(to right, hsl(237, 38%, 27%), hsl(237, 38%, 7%))

hex

background-color: #2B2D5F;

tailwind

bg-[hsl(237,38%,27%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(237, 38%, 27%, 0.4);

css variable

--color-primary: hsl(237, 38%, 27%);

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(237, 38%, 27%)?

HEX: #2B2D5F | RGB: rgb(43, 45, 95) | CMYK: 55%, 53%, 0%, 63% | HSV: 238°, 55%, 37%. Copy any format from the conversion table above.

What colors go well with #2B2D5F?

The complementary color is HSL(57, 38%, 27%). For a triadic harmony, use hues 237°, 357°, and 117°. For analogous combinations, try hues 207° and 267°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(237, 38%, 27%) in CSS?

As HSL: color: hsl(237, 38%, 27%); — As HEX: color: #2B2D5F; — As RGB: color: rgb(43, 45, 95); — Tailwind CSS: bg-[hsl(237,38%,27%)] — CSS variable: --color-primary: hsl(237, 38%, 27%);