HSL(233, 46%, 20%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(233,46%,20%)]

Color Conversions

Format Value CSS Usage
HSL hsl(233, 46%, 20%) color: hsl(233, 46%, 20%)
HEX #1C214A color: #1C214A
RGB rgb(28, 33, 74) color: rgb(28, 33, 74)
CMYK cmyk(62%, 55%, 0%, 71%)
HSV hsv(233, 62%, 29%)
HWB hwb(233 11% 71%) color: hwb(233 11% 71%)
OKLCH oklch(0.2681 0.0754 274.89) color: oklch(0.2681 0.0754 274.89)
Lab lab(14.56 12.01 -26.31) color: lab(14.56 12.01 -26.31)
LCH lch(14.56 28.92 294.54) color: lch(14.56 28.92 294.54)

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 15.38:1
vs Black 1.37: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)

#1E1E40 — rgb(30, 30, 64)

Deuteranopia (Green-blind)

#1E1E3E — rgb(30, 30, 62)

Tritanopia (Blue-blind)

#1C3837 — rgb(28, 56, 55)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(233, 46%, 20%);

text

color: hsl(233, 46%, 20%);

border

border: 2px solid hsl(233, 46%, 20%);

gradient light

background: linear-gradient(to right, hsl(233, 46%, 40%), hsl(233, 46%, 20%));

gradient dark

background: linear-gradient(to right, hsl(233, 46%, 20%), hsl(233, 46%, 0%))

hex

background-color: #1C214A;

tailwind

bg-[hsl(233,46%,20%)]

box shadow

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

css variable

--color-primary: hsl(233, 46%, 20%);

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, 46%, 20%)?

HEX: #1C214A | RGB: rgb(28, 33, 74) | CMYK: 62%, 55%, 0%, 71% | HSV: 233°, 62%, 29%. Copy any format from the conversion table above.

What colors go well with #1C214A?

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

As HSL: color: hsl(233, 46%, 20%); — As HEX: color: #1C214A; — As RGB: color: rgb(28, 33, 74); — Tailwind CSS: bg-[hsl(233,46%,20%)] — CSS variable: --color-primary: hsl(233, 46%, 20%);