HSL(227, 23%, 23%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(227,23%,23%)]

Color Conversions

Format Value CSS Usage
HSL hsl(227, 23%, 23%) color: hsl(227, 23%, 23%)
HEX #2D3348 color: #2D3348
RGB rgb(45, 51, 72) color: rgb(45, 51, 72)
CMYK cmyk(38%, 29%, 0%, 72%)
HSV hsv(227, 38%, 28%)
HWB hwb(227 17% 72%) color: hwb(227 17% 72%)
OKLCH oklch(0.325 0.0384 271.83) color: oklch(0.325 0.0384 271.83)
Lab lab(21.55 3.44 -13.83) color: lab(21.55 3.44 -13.83)
LCH lch(21.55 14.25 283.97) color: lch(21.55 14.25 283.97)

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.51:1
vs Black 1.68: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)

#303043 — rgb(48, 48, 67)

Deuteranopia (Green-blind)

#2F2F42 — rgb(47, 47, 66)

Tritanopia (Blue-blind)

#2D3F3E — rgb(45, 63, 62)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(227, 23%, 23%);

text

color: hsl(227, 23%, 23%);

border

border: 2px solid hsl(227, 23%, 23%);

gradient light

background: linear-gradient(to right, hsl(227, 23%, 43%), hsl(227, 23%, 23%));

gradient dark

background: linear-gradient(to right, hsl(227, 23%, 23%), hsl(227, 23%, 3%))

hex

background-color: #2D3348;

tailwind

bg-[hsl(227,23%,23%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(227, 23%, 23%, 0.4);

css variable

--color-primary: hsl(227, 23%, 23%);

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(227, 23%, 23%)?

HEX: #2D3348 | RGB: rgb(45, 51, 72) | CMYK: 38%, 29%, 0%, 72% | HSV: 227°, 38%, 28%. Copy any format from the conversion table above.

What colors go well with #2D3348?

The complementary color is HSL(47, 23%, 23%). For a triadic harmony, use hues 227°, 347°, and 107°. For analogous combinations, try hues 197° and 257°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(227, 23%, 23%) in CSS?

As HSL: color: hsl(227, 23%, 23%); — As HEX: color: #2D3348; — As RGB: color: rgb(45, 51, 72); — Tailwind CSS: bg-[hsl(227,23%,23%)] — CSS variable: --color-primary: hsl(227, 23%, 23%);