HSL(242, 28%, 25%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(242,28%,25%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 28%, 25%) | color: hsl(242, 28%, 25%) | |
| HEX | #2F2E52 | color: #2F2E52 | |
| RGB | rgb(47, 46, 82) | color: rgb(47, 46, 82) | |
| CMYK | cmyk(43%, 44%, 0%, 68%) | — | |
| HSV | hsv(242, 44%, 32%) | — | |
| HWB | hwb(242 18% 68%) | color: hwb(242 18% 68%) | |
| OKLCH | oklch(0.3206 0.0632 283.49) | color: oklch(0.3206 0.0632 283.49) | |
| Lab | lab(20.7 10.83 -21.86) | color: lab(20.7 10.83 -21.86) | |
| LCH | lch(20.7 24.4 296.35) | color: lch(20.7 24.4 296.35) |
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)
#2F2F49 — rgb(47, 47, 73)
Deuteranopia (Green-blind)
#2F2F47 — rgb(47, 47, 71)
Tritanopia (Blue-blind)
#2F4241 — rgb(47, 66, 65)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 28%, 25%);
text
color: hsl(242, 28%, 25%);
border
border: 2px solid hsl(242, 28%, 25%);
gradient light
background: linear-gradient(to right, hsl(242, 28%, 45%), hsl(242, 28%, 25%));
gradient dark
background: linear-gradient(to right, hsl(242, 28%, 25%), hsl(242, 28%, 5%))
hex
background-color: #2F2E52;
tailwind
bg-[hsl(242,28%,25%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 28%, 25%, 0.4);
css variable
--color-primary: hsl(242, 28%, 25%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(242, 28%, 25%)?
HEX: #2F2E52 | RGB: rgb(47, 46, 82) | CMYK: 43%, 44%, 0%, 68% | HSV: 242°, 44%, 32%. Copy any format from the conversion table above.
What colors go well with #2F2E52?
The complementary color is HSL(62, 28%, 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, 28%, 25%) in CSS?
As HSL: color: hsl(242, 28%, 25%); — As HEX: color: #2F2E52; — As RGB: color: rgb(47, 46, 82); — Tailwind CSS: bg-[hsl(242,28%,25%)] — CSS variable: --color-primary: hsl(242, 28%, 25%);