HSL(242, 22%, 25%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(242,22%,25%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 22%, 25%) | color: hsl(242, 22%, 25%) | |
| HEX | #33324E | color: #33324E | |
| RGB | rgb(51, 50, 78) | color: rgb(51, 50, 78) | |
| CMYK | cmyk(35%, 36%, 0%, 69%) | — | |
| HSV | hsv(242, 36%, 31%) | — | |
| HWB | hwb(242 20% 69%) | color: hwb(242 20% 69%) | |
| OKLCH | oklch(0.3313 0.049 285.02) | color: oklch(0.3313 0.049 285.02) | |
| Lab | lab(22.07 8.07 -17.01) | color: lab(22.07 8.07 -17.01) | |
| LCH | lch(22.07 18.83 295.38) | color: lch(22.07 18.83 295.38) |
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)
#333347 — rgb(51, 51, 71)
Deuteranopia (Green-blind)
#333346 — rgb(51, 51, 70)
Tritanopia (Blue-blind)
#334241 — rgb(51, 66, 65)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 22%, 25%);
text
color: hsl(242, 22%, 25%);
border
border: 2px solid hsl(242, 22%, 25%);
gradient light
background: linear-gradient(to right, hsl(242, 22%, 45%), hsl(242, 22%, 25%));
gradient dark
background: linear-gradient(to right, hsl(242, 22%, 25%), hsl(242, 22%, 5%))
hex
background-color: #33324E;
tailwind
bg-[hsl(242,22%,25%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 22%, 25%, 0.4);
css variable
--color-primary: hsl(242, 22%, 25%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(242, 22%, 25%)?
HEX: #33324E | RGB: rgb(51, 50, 78) | CMYK: 35%, 36%, 0%, 69% | HSV: 242°, 36%, 31%. Copy any format from the conversion table above.
What colors go well with #33324E?
The complementary color is HSL(62, 22%, 25%). For a triadic harmony, use hues 242°, 2°, and 122°. For analogous combinations, try hues 212° and 272°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(242, 22%, 25%) in CSS?
As HSL: color: hsl(242, 22%, 25%); — As HEX: color: #33324E; — As RGB: color: rgb(51, 50, 78); — Tailwind CSS: bg-[hsl(242,22%,25%)] — CSS variable: --color-primary: hsl(242, 22%, 25%);