HSL(242, 91%, 15%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(242,91%,15%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 91%, 15%) | color: hsl(242, 91%, 15%) | |
| HEX | #060349 | color: #060349 | |
| RGB | rgb(6, 3, 73) | color: rgb(6, 3, 73) | |
| CMYK | cmyk(92%, 96%, 0%, 71%) | — | |
| HSV | hsv(243, 96%, 29%) | — | |
| HWB | hwb(243 1% 71%) | color: hwb(243 1% 71%) | |
| OKLCH | oklch(0.1935 0.12 269.38) | color: oklch(0.1935 0.12 269.38) | |
| Lab | lab(5.28 28.14 -40.85) | color: lab(5.28 28.14 -40.85) | |
| LCH | lch(5.28 49.6 304.56) | color: lch(5.28 49.6 304.56) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#050538 — rgb(5, 5, 56)
Deuteranopia (Green-blind)
#050534 — rgb(5, 5, 52)
Tritanopia (Blue-blind)
#062B28 — rgb(6, 43, 40)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 91%, 15%);
text
color: hsl(242, 91%, 15%);
border
border: 2px solid hsl(242, 91%, 15%);
gradient light
background: linear-gradient(to right, hsl(242, 91%, 35%), hsl(242, 91%, 15%));
gradient dark
background: linear-gradient(to right, hsl(242, 91%, 15%), hsl(242, 91%, 0%))
hex
background-color: #060349;
tailwind
bg-[hsl(242,91%,15%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 91%, 15%, 0.4);
css variable
--color-primary: hsl(242, 91%, 15%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(242, 91%, 15%)?
HEX: #060349 | RGB: rgb(6, 3, 73) | CMYK: 92%, 96%, 0%, 71% | HSV: 243°, 96%, 29%. Copy any format from the conversion table above.
What colors go well with #060349?
The complementary color is HSL(62, 91%, 15%). For a triadic harmony, use hues 242°, 2°, and 122°. For analogous combinations, try hues 212° and 272°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(242, 91%, 15%) in CSS?
As HSL: color: hsl(242, 91%, 15%); — As HEX: color: #060349; — As RGB: color: rgb(6, 3, 73); — Tailwind CSS: bg-[hsl(242,91%,15%)] — CSS variable: --color-primary: hsl(242, 91%, 15%);