HSL(237, 83%, 30%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(237, 83%, 30%) color: hsl(237, 83%, 30%)
HEX #0D138C color: #0D138C
RGB rgb(13, 19, 140) color: rgb(13, 19, 140)
CMYK cmyk(91%, 86%, 0%, 45%)
HSV hsv(237, 91%, 55%)
HWB hwb(237 5% 45%) color: hwb(237 5% 45%)
OKLCH oklch(0.3093 0.1869 267.03) color: oklch(0.3093 0.1869 267.03)
Lab lab(17.66 43.86 -64.44) color: lab(17.66 43.86 -64.44)
LCH lch(17.66 77.95 304.24) color: lch(17.66 77.95 304.24)

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.1: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)

#10106F — rgb(16, 16, 111)

Deuteranopia (Green-blind)

#0F0F68 — rgb(15, 15, 104)

Tritanopia (Blue-blind)

#0D5853 — rgb(13, 88, 83)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

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

gradient dark

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

hex

background-color: #0D138C;

tailwind

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

box shadow

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

css variable

--color-primary: hsl(237, 83%, 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, 83%, 30%)?

HEX: #0D138C | RGB: rgb(13, 19, 140) | CMYK: 91%, 86%, 0%, 45% | HSV: 237°, 91%, 55%. Copy any format from the conversion table above.

What colors go well with #0D138C?

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

As HSL: color: hsl(237, 83%, 30%); — As HEX: color: #0D138C; — As RGB: color: rgb(13, 19, 140); — Tailwind CSS: bg-[hsl(237,83%,30%)] — CSS variable: --color-primary: hsl(237, 83%, 30%);