HSL(254, 20%, 36%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(254,20%,36%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(254, 20%, 36%) | color: hsl(254, 20%, 36%) | |
| HEX | #52496E | color: #52496E | |
| RGB | rgb(82, 73, 110) | color: rgb(82, 73, 110) | |
| CMYK | cmyk(25%, 34%, 0%, 57%) | — | |
| HSV | hsv(255, 34%, 43%) | — | |
| HWB | hwb(255 28% 57%) | color: hwb(255 28% 57%) | |
| OKLCH | oklch(0.43 0.0611 294.87) | color: oklch(0.43 0.0611 294.87) | |
| Lab | lab(33.32 12.55 -20.01) | color: lab(33.32 12.55 -20.01) | |
| LCH | lch(33.32 23.62 302.1) | color: lch(33.32 23.62 302.1) |
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)
#4E4E65 — rgb(78, 78, 101)
Deuteranopia (Green-blind)
#4F4F63 — rgb(79, 79, 99)
Tritanopia (Blue-blind)
#525E5C — rgb(82, 94, 92)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(254, 20%, 36%);
text
color: hsl(254, 20%, 36%);
border
border: 2px solid hsl(254, 20%, 36%);
gradient light
background: linear-gradient(to right, hsl(254, 20%, 56%), hsl(254, 20%, 36%));
gradient dark
background: linear-gradient(to right, hsl(254, 20%, 36%), hsl(254, 20%, 16%))
hex
background-color: #52496E;
tailwind
bg-[hsl(254,20%,36%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(254, 20%, 36%, 0.4);
css variable
--color-primary: hsl(254, 20%, 36%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(254, 20%, 36%)?
HEX: #52496E | RGB: rgb(82, 73, 110) | CMYK: 25%, 34%, 0%, 57% | HSV: 255°, 34%, 43%. Copy any format from the conversion table above.
What colors go well with #52496E?
The complementary color is HSL(74, 20%, 36%). 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, 20%, 36%) in CSS?
As HSL: color: hsl(254, 20%, 36%); — As HEX: color: #52496E; — As RGB: color: rgb(82, 73, 110); — Tailwind CSS: bg-[hsl(254,20%,36%)] — CSS variable: --color-primary: hsl(254, 20%, 36%);