HSL(231, 51%, 2%)

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(231,51%,2%)]

Color Conversions

Format Value CSS Usage
HSL hsl(231, 51%, 2%) color: hsl(231, 51%, 2%)
HEX #020308 color: #020308
RGB rgb(2, 3, 8) color: rgb(2, 3, 8)
CMYK cmyk(75%, 63%, 0%, 97%)
HSV hsv(230, 75%, 3%)
HWB hwb(230 1% 97%) color: hwb(230 1% 97%)
OKLCH oklch(0.0991 0.0181 269.89) color: oklch(0.0991 0.0181 269.89)
Lab lab(0.86 0.43 -1.98) color: lab(0.86 0.43 -1.98)
LCH lch(0.86 2.03 282.25) color: lch(0.86 2.03 282.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 20.61:1
vs Black 1.02: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)

#020207 — rgb(2, 2, 7)

Deuteranopia (Green-blind)

#020207 — rgb(2, 2, 7)

Tritanopia (Blue-blind)

#020606 — rgb(2, 6, 6)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(231, 51%, 2%);

text

color: hsl(231, 51%, 2%);

border

border: 2px solid hsl(231, 51%, 2%);

gradient light

background: linear-gradient(to right, hsl(231, 51%, 22%), hsl(231, 51%, 2%));

gradient dark

background: linear-gradient(to right, hsl(231, 51%, 2%), hsl(231, 51%, 0%))

hex

background-color: #020308;

tailwind

bg-[hsl(231,51%,2%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(231, 51%, 2%, 0.4);

css variable

--color-primary: hsl(231, 51%, 2%);

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(231, 51%, 2%)?

HEX: #020308 | RGB: rgb(2, 3, 8) | CMYK: 75%, 63%, 0%, 97% | HSV: 230°, 75%, 3%. Copy any format from the conversion table above.

What colors go well with #020308?

The complementary color is HSL(51, 51%, 2%). For a triadic harmony, use hues 231°, 351°, and 111°. For analogous combinations, try hues 201° and 261°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(231, 51%, 2%) in CSS?

As HSL: color: hsl(231, 51%, 2%); — As HEX: color: #020308; — As RGB: color: rgb(2, 3, 8); — Tailwind CSS: bg-[hsl(231,51%,2%)] — CSS variable: --color-primary: hsl(231, 51%, 2%);