HSL(233, 93%, 20%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(233, 93%, 20%) color: hsl(233, 93%, 20%)
HEX #040F62 color: #040F62
RGB rgb(4, 15, 98) color: rgb(4, 15, 98)
CMYK cmyk(96%, 85%, 0%, 62%)
HSV hsv(233, 96%, 38%)
HWB hwb(233 2% 62%) color: hwb(233 2% 62%)
OKLCH oklch(0.2451 0.1412 265.8) color: oklch(0.2451 0.1412 265.8)
Lab lab(10.91 31.18 -48.59) color: lab(10.91 31.18 -48.59)
LCH lch(10.91 57.73 302.69) color: lch(10.91 57.73 302.69)

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 16.8:1
vs Black 1.25: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)

#09094E — rgb(9, 9, 78)

Deuteranopia (Green-blind)

#080749 — rgb(8, 7, 73)

Tritanopia (Blue-blind)

#053E3B — rgb(5, 62, 59)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

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

gradient dark

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

hex

background-color: #040F62;

tailwind

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

box shadow

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

css variable

--color-primary: hsl(233, 93%, 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, 93%, 20%)?

HEX: #040F62 | RGB: rgb(4, 15, 98) | CMYK: 96%, 85%, 0%, 62% | HSV: 233°, 96%, 38%. Copy any format from the conversion table above.

What colors go well with #040F62?

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

As HSL: color: hsl(233, 93%, 20%); — As HEX: color: #040F62; — As RGB: color: rgb(4, 15, 98); — Tailwind CSS: bg-[hsl(233,93%,20%)] — CSS variable: --color-primary: hsl(233, 93%, 20%);