HSL(228, 83%, 30%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(228, 83%, 30%) color: hsl(228, 83%, 30%)
HEX #0D268C color: #0D268C
RGB rgb(13, 38, 140) color: rgb(13, 38, 140)
CMYK cmyk(91%, 73%, 0%, 45%)
HSV hsv(228, 91%, 55%)
HWB hwb(228 5% 45%) color: hwb(228 5% 45%)
OKLCH oklch(0.336 0.1692 265.62) color: oklch(0.336 0.1692 265.62)
Lab lab(21.45 33.04 -58.16) color: lab(21.45 33.04 -58.16)
LCH lch(21.45 66.89 299.6) color: lch(21.45 66.89 299.6)

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.55:1
vs Black 1.67: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)

#181873 — rgb(24, 24, 115)

Deuteranopia (Green-blind)

#16156D — rgb(22, 21, 109)

Tritanopia (Blue-blind)

#0E605C — rgb(14, 96, 92)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

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

gradient dark

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

hex

background-color: #0D268C;

tailwind

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

box shadow

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

css variable

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

HEX: #0D268C | RGB: rgb(13, 38, 140) | CMYK: 91%, 73%, 0%, 45% | HSV: 228°, 91%, 55%. Copy any format from the conversion table above.

What colors go well with #0D268C?

The complementary color is HSL(48, 83%, 30%). For a triadic harmony, use hues 228°, 348°, and 108°. For analogous combinations, try hues 198° and 258°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(228, 83%, 30%) in CSS?

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