HSL(250, 42%, 15%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(250,42%,15%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(250, 42%, 15%) | color: hsl(250, 42%, 15%) | |
| HEX | #1C1636 | color: #1C1636 | |
| RGB | rgb(28, 22, 54) | color: rgb(28, 22, 54) | |
| CMYK | cmyk(48%, 59%, 0%, 79%) | — | |
| HSV | hsv(251, 59%, 21%) | — | |
| HWB | hwb(251 9% 79%) | color: hwb(251 9% 79%) | |
| OKLCH | oklch(0.2267 0.0602 289.32) | color: oklch(0.2267 0.0602 289.32) | |
| Lab | lab(9.7 12.72 -20.03) | color: lab(9.7 12.72 -20.03) | |
| LCH | lch(9.7 23.73 302.42) | color: lch(9.7 23.73 302.42) |
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)
#19192E — rgb(25, 25, 46)
Deuteranopia (Green-blind)
#1A1A2C — rgb(26, 26, 44)
Tritanopia (Blue-blind)
#1C2827 — rgb(28, 40, 39)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(250, 42%, 15%);
text
color: hsl(250, 42%, 15%);
border
border: 2px solid hsl(250, 42%, 15%);
gradient light
background: linear-gradient(to right, hsl(250, 42%, 35%), hsl(250, 42%, 15%));
gradient dark
background: linear-gradient(to right, hsl(250, 42%, 15%), hsl(250, 42%, 0%))
hex
background-color: #1C1636;
tailwind
bg-[hsl(250,42%,15%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(250, 42%, 15%, 0.4);
css variable
--color-primary: hsl(250, 42%, 15%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(250, 42%, 15%)?
HEX: #1C1636 | RGB: rgb(28, 22, 54) | CMYK: 48%, 59%, 0%, 79% | HSV: 251°, 59%, 21%. Copy any format from the conversion table above.
What colors go well with #1C1636?
The complementary color is HSL(70, 42%, 15%). For a triadic harmony, use hues 250°, 10°, and 130°. For analogous combinations, try hues 220° and 280°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(250, 42%, 15%) in CSS?
As HSL: color: hsl(250, 42%, 15%); — As HEX: color: #1C1636; — As RGB: color: rgb(28, 22, 54); — Tailwind CSS: bg-[hsl(250,42%,15%)] — CSS variable: --color-primary: hsl(250, 42%, 15%);