HSL(231, 21%, 46%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(231,21%,46%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(231, 21%, 46%) | color: hsl(231, 21%, 46%) | |
| HEX | #5D648E | color: #5D648E | |
| RGB | rgb(93, 100, 142) | color: rgb(93, 100, 142) | |
| CMYK | cmyk(35%, 30%, 0%, 44%) | — | |
| HSV | hsv(231, 35%, 56%) | — | |
| HWB | hwb(231 36% 44%) | color: hwb(231 36% 44%) | |
| OKLCH | oklch(0.5145 0.0671 276.49) | color: oklch(0.5145 0.0671 276.49) | |
| Lab | lab(43.35 7.94 -23.99) | color: lab(43.35 7.94 -23.99) | |
| LCH | lch(43.35 25.27 288.31) | color: lch(43.35 25.27 288.31) |
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)
#606084 — rgb(96, 96, 132)
Deuteranopia (Green-blind)
#605F81 — rgb(96, 95, 129)
Tritanopia (Blue-blind)
#5D7C7A — rgb(93, 124, 122)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(231, 21%, 46%);
text
color: hsl(231, 21%, 46%);
border
border: 2px solid hsl(231, 21%, 46%);
gradient light
background: linear-gradient(to right, hsl(231, 21%, 66%), hsl(231, 21%, 46%));
gradient dark
background: linear-gradient(to right, hsl(231, 21%, 46%), hsl(231, 21%, 26%))
hex
background-color: #5D648E;
tailwind
bg-[hsl(231,21%,46%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(231, 21%, 46%, 0.4);
css variable
--color-primary: hsl(231, 21%, 46%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(231, 21%, 46%)?
HEX: #5D648E | RGB: rgb(93, 100, 142) | CMYK: 35%, 30%, 0%, 44% | HSV: 231°, 35%, 56%. Copy any format from the conversion table above.
What colors go well with #5D648E?
The complementary color is HSL(51, 21%, 46%). 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, 21%, 46%) in CSS?
As HSL: color: hsl(231, 21%, 46%); — As HEX: color: #5D648E; — As RGB: color: rgb(93, 100, 142); — Tailwind CSS: bg-[hsl(231,21%,46%)] — CSS variable: --color-primary: hsl(231, 21%, 46%);