HSL(252, 31%, 24%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(252,31%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(252, 31%, 24%) | color: hsl(252, 31%, 24%) | |
| HEX | #322A50 | color: #322A50 | |
| RGB | rgb(50, 42, 80) | color: rgb(50, 42, 80) | |
| CMYK | cmyk(38%, 48%, 0%, 69%) | — | |
| HSV | hsv(253, 48%, 31%) | — | |
| HWB | hwb(253 16% 69%) | color: hwb(253 16% 69%) | |
| OKLCH | oklch(0.3132 0.0669 291.75) | color: oklch(0.3132 0.0669 291.75) | |
| Lab | lab(19.69 13.93 -22.09) | color: lab(19.69 13.93 -22.09) | |
| LCH | lch(19.69 26.12 302.24) | color: lch(19.69 26.12 302.24) |
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)
#2F2E47 — rgb(47, 46, 71)
Deuteranopia (Green-blind)
#2F3045 — rgb(47, 48, 69)
Tritanopia (Blue-blind)
#32403E — rgb(50, 64, 62)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(252, 31%, 24%);
text
color: hsl(252, 31%, 24%);
border
border: 2px solid hsl(252, 31%, 24%);
gradient light
background: linear-gradient(to right, hsl(252, 31%, 44%), hsl(252, 31%, 24%));
gradient dark
background: linear-gradient(to right, hsl(252, 31%, 24%), hsl(252, 31%, 4%))
hex
background-color: #322A50;
tailwind
bg-[hsl(252,31%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(252, 31%, 24%, 0.4);
css variable
--color-primary: hsl(252, 31%, 24%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(252, 31%, 24%)?
HEX: #322A50 | RGB: rgb(50, 42, 80) | CMYK: 38%, 48%, 0%, 69% | HSV: 253°, 48%, 31%. Copy any format from the conversion table above.
What colors go well with #322A50?
The complementary color is HSL(72, 31%, 24%). 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, 31%, 24%) in CSS?
As HSL: color: hsl(252, 31%, 24%); — As HEX: color: #322A50; — As RGB: color: rgb(50, 42, 80); — Tailwind CSS: bg-[hsl(252,31%,24%)] — CSS variable: --color-primary: hsl(252, 31%, 24%);