HSL(248, 86%, 29%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(248,86%,29%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(248, 86%, 29%) | color: hsl(248, 86%, 29%) | |
| HEX | #1B0A8A | color: #1B0A8A | |
| RGB | rgb(27, 10, 138) | color: rgb(27, 10, 138) | |
| CMYK | cmyk(80%, 93%, 0%, 46%) | — | |
| HSV | hsv(248, 93%, 54%) | — | |
| HWB | hwb(248 4% 46%) | color: hwb(248 4% 46%) | |
| OKLCH | oklch(0.3053 0.1863 272.14) | color: oklch(0.3053 0.1863 272.14) | |
| Lab | lab(16.91 47.29 -64.41) | color: lab(16.91 47.29 -64.41) | |
| LCH | lch(16.91 79.91 306.29) | color: lch(16.91 79.91 306.29) |
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)
#14136B — rgb(20, 19, 107)
Deuteranopia (Green-blind)
#151664 — rgb(21, 22, 100)
Tritanopia (Blue-blind)
#1A534D — rgb(26, 83, 77)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(248, 86%, 29%);
text
color: hsl(248, 86%, 29%);
border
border: 2px solid hsl(248, 86%, 29%);
gradient light
background: linear-gradient(to right, hsl(248, 86%, 49%), hsl(248, 86%, 29%));
gradient dark
background: linear-gradient(to right, hsl(248, 86%, 29%), hsl(248, 86%, 9%))
hex
background-color: #1B0A8A;
tailwind
bg-[hsl(248,86%,29%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(248, 86%, 29%, 0.4);
css variable
--color-primary: hsl(248, 86%, 29%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(248, 86%, 29%)?
HEX: #1B0A8A | RGB: rgb(27, 10, 138) | CMYK: 80%, 93%, 0%, 46% | HSV: 248°, 93%, 54%. Copy any format from the conversion table above.
What colors go well with #1B0A8A?
The complementary color is HSL(68, 86%, 29%). For a triadic harmony, use hues 248°, 8°, and 128°. For analogous combinations, try hues 218° and 278°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(248, 86%, 29%) in CSS?
As HSL: color: hsl(248, 86%, 29%); — As HEX: color: #1B0A8A; — As RGB: color: rgb(27, 10, 138); — Tailwind CSS: bg-[hsl(248,86%,29%)] — CSS variable: --color-primary: hsl(248, 86%, 29%);