HSL(231, 29%, 15%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(231,29%,15%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(231, 29%, 15%) | color: hsl(231, 29%, 15%) | |
| HEX | #1B1E31 | color: #1B1E31 | |
| RGB | rgb(27, 30, 49) | color: rgb(27, 30, 49) | |
| CMYK | cmyk(45%, 39%, 0%, 81%) | — | |
| HSV | hsv(232, 45%, 19%) | — | |
| HWB | hwb(232 10% 81%) | color: hwb(232 10% 81%) | |
| OKLCH | oklch(0.2417 0.0366 276.43) | color: oklch(0.2417 0.0366 276.43) | |
| Lab | lab(11.85 4.56 -13.03) | color: lab(11.85 4.56 -13.03) | |
| LCH | lch(11.85 13.8 289.29) | color: lch(11.85 13.8 289.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)
#1C1C2C — rgb(28, 28, 44)
Deuteranopia (Green-blind)
#1C1C2B — rgb(28, 28, 43)
Tritanopia (Blue-blind)
#1B2928 — rgb(27, 41, 40)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(231, 29%, 15%);
text
color: hsl(231, 29%, 15%);
border
border: 2px solid hsl(231, 29%, 15%);
gradient light
background: linear-gradient(to right, hsl(231, 29%, 35%), hsl(231, 29%, 15%));
gradient dark
background: linear-gradient(to right, hsl(231, 29%, 15%), hsl(231, 29%, 0%))
hex
background-color: #1B1E31;
tailwind
bg-[hsl(231,29%,15%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(231, 29%, 15%, 0.4);
css variable
--color-primary: hsl(231, 29%, 15%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(231, 29%, 15%)?
HEX: #1B1E31 | RGB: rgb(27, 30, 49) | CMYK: 45%, 39%, 0%, 81% | HSV: 232°, 45%, 19%. Copy any format from the conversion table above.
What colors go well with #1B1E31?
The complementary color is HSL(51, 29%, 15%). 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, 29%, 15%) in CSS?
As HSL: color: hsl(231, 29%, 15%); — As HEX: color: #1B1E31; — As RGB: color: rgb(27, 30, 49); — Tailwind CSS: bg-[hsl(231,29%,15%)] — CSS variable: --color-primary: hsl(231, 29%, 15%);