HSL(226, 70%, 38%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(226,70%,38%)]

Color Conversions

Format Value CSS Usage
HSL hsl(226, 70%, 38%) color: hsl(226, 70%, 38%)
HEX #1D3DA5 color: #1D3DA5
RGB rgb(29, 61, 165) color: rgb(29, 61, 165)
CMYK cmyk(82%, 63%, 0%, 35%)
HSV hsv(226, 82%, 65%)
HWB hwb(226 12% 35%) color: hwb(226 12% 35%)
OKLCH oklch(0.409 0.1715 265.72) color: oklch(0.409 0.1715 265.72)
Lab lab(30.19 28.49 -59.08) color: lab(30.19 28.49 -59.08)
LCH lch(30.19 65.59 295.74) color: lch(30.19 65.59 295.74)

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 9.28:1
vs Black 2.26: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)

#2B2B8C — rgb(43, 43, 140)

Deuteranopia (Green-blind)

#292786 — rgb(41, 39, 134)

Tritanopia (Blue-blind)

#1F7874 — rgb(31, 120, 116)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(226, 70%, 38%);

text

color: hsl(226, 70%, 38%);

border

border: 2px solid hsl(226, 70%, 38%);

gradient light

background: linear-gradient(to right, hsl(226, 70%, 58%), hsl(226, 70%, 38%));

gradient dark

background: linear-gradient(to right, hsl(226, 70%, 38%), hsl(226, 70%, 18%))

hex

background-color: #1D3DA5;

tailwind

bg-[hsl(226,70%,38%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(226, 70%, 38%, 0.4);

css variable

--color-primary: hsl(226, 70%, 38%);

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(226, 70%, 38%)?

HEX: #1D3DA5 | RGB: rgb(29, 61, 165) | CMYK: 82%, 63%, 0%, 35% | HSV: 226°, 82%, 65%. Copy any format from the conversion table above.

What colors go well with #1D3DA5?

The complementary color is HSL(46, 70%, 38%). For a triadic harmony, use hues 226°, 346°, and 106°. For analogous combinations, try hues 196° and 256°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(226, 70%, 38%) in CSS?

As HSL: color: hsl(226, 70%, 38%); — As HEX: color: #1D3DA5; — As RGB: color: rgb(29, 61, 165); — Tailwind CSS: bg-[hsl(226,70%,38%)] — CSS variable: --color-primary: hsl(226, 70%, 38%);