HSL(253, 40%, 22%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(253,40%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(253, 40%, 22%) | color: hsl(253, 40%, 22%) | |
| HEX | #2B224F | color: #2B224F | |
| RGB | rgb(43, 34, 79) | color: rgb(43, 34, 79) | |
| CMYK | cmyk(46%, 57%, 0%, 69%) | — | |
| HSV | hsv(252, 57%, 31%) | — | |
| HWB | hwb(252 13% 69%) | color: hwb(252 13% 69%) | |
| OKLCH | oklch(0.2881 0.0795 289.67) | color: oklch(0.2881 0.0795 289.67) | |
| Lab | lab(16.61 17.08 -26.36) | color: lab(16.61 17.08 -26.36) | |
| LCH | lch(16.61 31.41 302.94) | color: lch(16.61 31.41 302.94) |
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)
#272744 — rgb(39, 39, 68)
Deuteranopia (Green-blind)
#282842 — rgb(40, 40, 66)
Tritanopia (Blue-blind)
#2B3C3A — rgb(43, 60, 58)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(253, 40%, 22%);
text
color: hsl(253, 40%, 22%);
border
border: 2px solid hsl(253, 40%, 22%);
gradient light
background: linear-gradient(to right, hsl(253, 40%, 42%), hsl(253, 40%, 22%));
gradient dark
background: linear-gradient(to right, hsl(253, 40%, 22%), hsl(253, 40%, 2%))
hex
background-color: #2B224F;
tailwind
bg-[hsl(253,40%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(253, 40%, 22%, 0.4);
css variable
--color-primary: hsl(253, 40%, 22%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(253, 40%, 22%)?
HEX: #2B224F | RGB: rgb(43, 34, 79) | CMYK: 46%, 57%, 0%, 69% | HSV: 252°, 57%, 31%. Copy any format from the conversion table above.
What colors go well with #2B224F?
The complementary color is HSL(73, 40%, 22%). For a triadic harmony, use hues 253°, 13°, and 133°. For analogous combinations, try hues 223° and 283°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(253, 40%, 22%) in CSS?
As HSL: color: hsl(253, 40%, 22%); — As HEX: color: #2B224F; — As RGB: color: rgb(43, 34, 79); — Tailwind CSS: bg-[hsl(253,40%,22%)] — CSS variable: --color-primary: hsl(253, 40%, 22%);