HSL(247, 28%, 20%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(247,28%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(247, 28%, 20%) | color: hsl(247, 28%, 20%) | |
| HEX | #282541 | color: #282541 | |
| RGB | rgb(40, 37, 65) | color: rgb(40, 37, 65) | |
| CMYK | cmyk(38%, 43%, 0%, 75%) | — | |
| HSV | hsv(246, 43%, 25%) | — | |
| HWB | hwb(246 14% 75%) | color: hwb(246 14% 75%) | |
| OKLCH | oklch(0.2819 0.0508 287.59) | color: oklch(0.2819 0.0508 287.59) | |
| Lab | lab(16.28 9.35 -17.29) | color: lab(16.28 9.35 -17.29) | |
| LCH | lch(16.28 19.66 298.4) | color: lch(16.28 19.66 298.4) |
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)
#27273A — rgb(39, 39, 58)
Deuteranopia (Green-blind)
#272739 — rgb(39, 39, 57)
Tritanopia (Blue-blind)
#283534 — rgb(40, 53, 52)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(247, 28%, 20%);
text
color: hsl(247, 28%, 20%);
border
border: 2px solid hsl(247, 28%, 20%);
gradient light
background: linear-gradient(to right, hsl(247, 28%, 40%), hsl(247, 28%, 20%));
gradient dark
background: linear-gradient(to right, hsl(247, 28%, 20%), hsl(247, 28%, 0%))
hex
background-color: #282541;
tailwind
bg-[hsl(247,28%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(247, 28%, 20%, 0.4);
css variable
--color-primary: hsl(247, 28%, 20%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(247, 28%, 20%)?
HEX: #282541 | RGB: rgb(40, 37, 65) | CMYK: 38%, 43%, 0%, 75% | HSV: 246°, 43%, 25%. Copy any format from the conversion table above.
What colors go well with #282541?
The complementary color is HSL(67, 28%, 20%). For a triadic harmony, use hues 247°, 7°, and 127°. For analogous combinations, try hues 217° and 277°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(247, 28%, 20%) in CSS?
As HSL: color: hsl(247, 28%, 20%); — As HEX: color: #282541; — As RGB: color: rgb(40, 37, 65); — Tailwind CSS: bg-[hsl(247,28%,20%)] — CSS variable: --color-primary: hsl(247, 28%, 20%);