HSL(237, 95%, 30%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(237,95%,30%)]

Color Conversions

Format Value CSS Usage
HSL hsl(237, 95%, 30%) color: hsl(237, 95%, 30%)
HEX #040B95 color: #040B95
RGB rgb(4, 11, 149) color: rgb(4, 11, 149)
CMYK cmyk(97%, 93%, 0%, 42%)
HSV hsv(237, 97%, 58%)
HWB hwb(237 2% 42%) color: hwb(237 2% 42%)
OKLCH oklch(0.3117 0.2036 265) color: oklch(0.3117 0.2036 265)
Lab lab(17.62 49.57 -70.13) color: lab(17.62 49.57 -70.13)
LCH lch(17.62 85.88 305.25) color: lch(17.62 85.88 305.25)

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 14.12:1
vs Black 1.49: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)

#070774 — rgb(7, 7, 116)

Deuteranopia (Green-blind)

#07066C — rgb(7, 6, 108)

Tritanopia (Blue-blind)

#045953 — rgb(4, 89, 83)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(237, 95%, 30%);

text

color: hsl(237, 95%, 30%);

border

border: 2px solid hsl(237, 95%, 30%);

gradient light

background: linear-gradient(to right, hsl(237, 95%, 50%), hsl(237, 95%, 30%));

gradient dark

background: linear-gradient(to right, hsl(237, 95%, 30%), hsl(237, 95%, 10%))

hex

background-color: #040B95;

tailwind

bg-[hsl(237,95%,30%)]

box shadow

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

css variable

--color-primary: hsl(237, 95%, 30%);

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, 95%, 30%)?

HEX: #040B95 | RGB: rgb(4, 11, 149) | CMYK: 97%, 93%, 0%, 42% | HSV: 237°, 97%, 58%. Copy any format from the conversion table above.

What colors go well with #040B95?

The complementary color is HSL(57, 95%, 30%). 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, 95%, 30%) in CSS?

As HSL: color: hsl(237, 95%, 30%); — As HEX: color: #040B95; — As RGB: color: rgb(4, 11, 149); — Tailwind CSS: bg-[hsl(237,95%,30%)] — CSS variable: --color-primary: hsl(237, 95%, 30%);