HSL(239, 40%, 28%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(239,40%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(239, 40%, 28%) | color: hsl(239, 40%, 28%) | |
| HEX | #2B2C64 | color: #2B2C64 | |
| RGB | rgb(43, 44, 100) | color: rgb(43, 44, 100) | |
| CMYK | cmyk(57%, 56%, 0%, 61%) | — | |
| HSV | hsv(239, 57%, 39%) | — | |
| HWB | hwb(239 17% 61%) | color: hwb(239 17% 61%) | |
| OKLCH | oklch(0.3255 0.0965 278.82) | color: oklch(0.3255 0.0965 278.82) | |
| Lab | lab(20.96 17.41 -33.37) | color: lab(20.96 17.41 -33.37) | |
| LCH | lch(20.96 37.64 297.55) | color: lch(20.96 37.64 297.55) |
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)
#2B2B56 — rgb(43, 43, 86)
Deuteranopia (Green-blind)
#2B2B53 — rgb(43, 43, 83)
Tritanopia (Blue-blind)
#2B4C49 — rgb(43, 76, 73)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(239, 40%, 28%);
text
color: hsl(239, 40%, 28%);
border
border: 2px solid hsl(239, 40%, 28%);
gradient light
background: linear-gradient(to right, hsl(239, 40%, 48%), hsl(239, 40%, 28%));
gradient dark
background: linear-gradient(to right, hsl(239, 40%, 28%), hsl(239, 40%, 8%))
hex
background-color: #2B2C64;
tailwind
bg-[hsl(239,40%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(239, 40%, 28%, 0.4);
css variable
--color-primary: hsl(239, 40%, 28%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(239, 40%, 28%)?
HEX: #2B2C64 | RGB: rgb(43, 44, 100) | CMYK: 57%, 56%, 0%, 61% | HSV: 239°, 57%, 39%. Copy any format from the conversion table above.
What colors go well with #2B2C64?
The complementary color is HSL(59, 40%, 28%). For a triadic harmony, use hues 239°, 359°, and 119°. For analogous combinations, try hues 209° and 269°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(239, 40%, 28%) in CSS?
As HSL: color: hsl(239, 40%, 28%); — As HEX: color: #2B2C64; — As RGB: color: rgb(43, 44, 100); — Tailwind CSS: bg-[hsl(239,40%,28%)] — CSS variable: --color-primary: hsl(239, 40%, 28%);