HSL(254, 50%, 15%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(254,50%,15%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(254, 50%, 15%) | color: hsl(254, 50%, 15%) | |
| HEX | #1C1339 | color: #1C1339 | |
| RGB | rgb(28, 19, 57) | color: rgb(28, 19, 57) | |
| CMYK | cmyk(51%, 67%, 0%, 78%) | — | |
| HSV | hsv(254, 67%, 22%) | — | |
| HWB | hwb(254 7% 78%) | color: hwb(254 7% 78%) | |
| OKLCH | oklch(0.2227 0.0706 290.4) | color: oklch(0.2227 0.0706 290.4) | |
| Lab | lab(9.06 16 -23.22) | color: lab(9.06 16 -23.22) | |
| LCH | lch(9.06 28.2 304.57) | color: lch(9.06 28.2 304.57) |
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)
#181830 — rgb(24, 24, 48)
Deuteranopia (Green-blind)
#19192E — rgb(25, 25, 46)
Tritanopia (Blue-blind)
#1C2927 — rgb(28, 41, 39)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(254, 50%, 15%);
text
color: hsl(254, 50%, 15%);
border
border: 2px solid hsl(254, 50%, 15%);
gradient light
background: linear-gradient(to right, hsl(254, 50%, 35%), hsl(254, 50%, 15%));
gradient dark
background: linear-gradient(to right, hsl(254, 50%, 15%), hsl(254, 50%, 0%))
hex
background-color: #1C1339;
tailwind
bg-[hsl(254,50%,15%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(254, 50%, 15%, 0.4);
css variable
--color-primary: hsl(254, 50%, 15%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(254, 50%, 15%)?
HEX: #1C1339 | RGB: rgb(28, 19, 57) | CMYK: 51%, 67%, 0%, 78% | HSV: 254°, 67%, 22%. Copy any format from the conversion table above.
What colors go well with #1C1339?
The complementary color is HSL(74, 50%, 15%). For a triadic harmony, use hues 254°, 14°, and 134°. For analogous combinations, try hues 224° and 284°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(254, 50%, 15%) in CSS?
As HSL: color: hsl(254, 50%, 15%); — As HEX: color: #1C1339; — As RGB: color: rgb(28, 19, 57); — Tailwind CSS: bg-[hsl(254,50%,15%)] — CSS variable: --color-primary: hsl(254, 50%, 15%);