HSL(252, 18%, 56%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(252,18%,56%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(252, 18%, 56%) | color: hsl(252, 18%, 56%) | |
| HEX | #837BA3 | color: #837BA3 | |
| RGB | rgb(131, 123, 163) | color: rgb(131, 123, 163) | |
| CMYK | cmyk(20%, 25%, 0%, 36%) | — | |
| HSV | hsv(252, 25%, 64%) | — | |
| HWB | hwb(252 48% 36%) | color: hwb(252 48% 36%) | |
| OKLCH | oklch(0.6048 0.0606 293.68) | color: oklch(0.6048 0.0606 293.68) | |
| Lab | lab(53.64 11.65 -20.26) | color: lab(53.64 11.65 -20.26) | |
| LCH | lch(53.64 23.37 299.9) | color: lch(53.64 23.37 299.9) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#807F99 — rgb(128, 127, 153)
Deuteranopia (Green-blind)
#808197 — rgb(128, 129, 151)
Tritanopia (Blue-blind)
#839290 — rgb(131, 146, 144)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(252, 18%, 56%);
text
color: hsl(252, 18%, 56%);
border
border: 2px solid hsl(252, 18%, 56%);
gradient light
background: linear-gradient(to right, hsl(252, 18%, 76%), hsl(252, 18%, 56%));
gradient dark
background: linear-gradient(to right, hsl(252, 18%, 56%), hsl(252, 18%, 36%))
hex
background-color: #837BA3;
tailwind
bg-[hsl(252,18%,56%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(252, 18%, 56%, 0.4);
css variable
--color-primary: hsl(252, 18%, 56%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(252, 18%, 56%)?
HEX: #837BA3 | RGB: rgb(131, 123, 163) | CMYK: 20%, 25%, 0%, 36% | HSV: 252°, 25%, 64%. Copy any format from the conversion table above.
What colors go well with #837BA3?
The complementary color is HSL(72, 18%, 56%). For a triadic harmony, use hues 252°, 12°, and 132°. For analogous combinations, try hues 222° and 282°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(252, 18%, 56%) in CSS?
As HSL: color: hsl(252, 18%, 56%); — As HEX: color: #837BA3; — As RGB: color: rgb(131, 123, 163); — Tailwind CSS: bg-[hsl(252,18%,56%)] — CSS variable: --color-primary: hsl(252, 18%, 56%);