HSL(236, 31%, 24%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(236,31%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(236, 31%, 24%) | color: hsl(236, 31%, 24%) | |
| HEX | #2A2D50 | color: #2A2D50 | |
| RGB | rgb(42, 45, 80) | color: rgb(42, 45, 80) | |
| CMYK | cmyk(48%, 44%, 0%, 69%) | — | |
| HSV | hsv(235, 48%, 31%) | — | |
| HWB | hwb(235 16% 69%) | color: hwb(235 16% 69%) | |
| OKLCH | oklch(0.3124 0.0625 278.41) | color: oklch(0.3124 0.0625 278.41) | |
| Lab | lab(19.83 9.32 -21.92) | color: lab(19.83 9.32 -21.92) | |
| LCH | lch(19.83 23.82 293.03) | color: lch(19.83 23.82 293.03) |
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)
#2B2B48 — rgb(43, 43, 72)
Deuteranopia (Green-blind)
#2B2B46 — rgb(43, 43, 70)
Tritanopia (Blue-blind)
#2A413F — rgb(42, 65, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(236, 31%, 24%);
text
color: hsl(236, 31%, 24%);
border
border: 2px solid hsl(236, 31%, 24%);
gradient light
background: linear-gradient(to right, hsl(236, 31%, 44%), hsl(236, 31%, 24%));
gradient dark
background: linear-gradient(to right, hsl(236, 31%, 24%), hsl(236, 31%, 4%))
hex
background-color: #2A2D50;
tailwind
bg-[hsl(236,31%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(236, 31%, 24%, 0.4);
css variable
--color-primary: hsl(236, 31%, 24%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(236, 31%, 24%)?
HEX: #2A2D50 | RGB: rgb(42, 45, 80) | CMYK: 48%, 44%, 0%, 69% | HSV: 235°, 48%, 31%. Copy any format from the conversion table above.
What colors go well with #2A2D50?
The complementary color is HSL(56, 31%, 24%). For a triadic harmony, use hues 236°, 356°, and 116°. For analogous combinations, try hues 206° and 266°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(236, 31%, 24%) in CSS?
As HSL: color: hsl(236, 31%, 24%); — As HEX: color: #2A2D50; — As RGB: color: rgb(42, 45, 80); — Tailwind CSS: bg-[hsl(236,31%,24%)] — CSS variable: --color-primary: hsl(236, 31%, 24%);