HSL(227, 64%, 13%)

Very Dark Blue — Blue color

Adjust Color

Color Information

Color Name

Very Dark Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(227,64%,13%)]

Color Conversions

Format Value CSS Usage
HSL hsl(227, 64%, 13%) color: hsl(227, 64%, 13%)
HEX #0C1536 color: #0C1536
RGB rgb(12, 21, 54) color: rgb(12, 21, 54)
CMYK cmyk(78%, 61%, 0%, 79%)
HSV hsv(227, 78%, 21%)
HWB hwb(227 5% 79%) color: hwb(227 5% 79%)
OKLCH oklch(0.21 0.0658 268.68) color: oklch(0.21 0.0658 268.68)
Lab lab(7.96 9.34 -22.9) color: lab(7.96 9.34 -22.9)
LCH lch(7.96 24.73 292.19) color: lch(7.96 24.73 292.19)

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 17.85:1
vs Black 1.18: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)

#10102E — rgb(16, 16, 46)

Deuteranopia (Green-blind)

#0F0F2C — rgb(15, 15, 44)

Tritanopia (Blue-blind)

#0C2826 — rgb(12, 40, 38)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(227, 64%, 13%);

text

color: hsl(227, 64%, 13%);

border

border: 2px solid hsl(227, 64%, 13%);

gradient light

background: linear-gradient(to right, hsl(227, 64%, 33%), hsl(227, 64%, 13%));

gradient dark

background: linear-gradient(to right, hsl(227, 64%, 13%), hsl(227, 64%, 0%))

hex

background-color: #0C1536;

tailwind

bg-[hsl(227,64%,13%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(227, 64%, 13%, 0.4);

css variable

--color-primary: hsl(227, 64%, 13%);

Related Colors

Use Cases for Very Dark Blue

Corporate branding Trust signals Tech products Social media Primary buttons

Frequently Asked Questions

What are all the color codes for HSL(227, 64%, 13%)?

HEX: #0C1536 | RGB: rgb(12, 21, 54) | CMYK: 78%, 61%, 0%, 79% | HSV: 227°, 78%, 21%. Copy any format from the conversion table above.

What colors go well with #0C1536?

The complementary color is HSL(47, 64%, 13%). For a triadic harmony, use hues 227°, 347°, and 107°. For analogous combinations, try hues 197° and 257°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(227, 64%, 13%) in CSS?

As HSL: color: hsl(227, 64%, 13%); — As HEX: color: #0C1536; — As RGB: color: rgb(12, 21, 54); — Tailwind CSS: bg-[hsl(227,64%,13%)] — CSS variable: --color-primary: hsl(227, 64%, 13%);