HSL(233, 37%, 27%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(233,37%,27%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(233, 37%, 27%) | color: hsl(233, 37%, 27%) | |
| HEX | #2B315E | color: #2B315E | |
| RGB | rgb(43, 49, 94) | color: rgb(43, 49, 94) | |
| CMYK | cmyk(54%, 48%, 0%, 63%) | — | |
| HSV | hsv(233, 54%, 37%) | — | |
| HWB | hwb(233 17% 63%) | color: hwb(233 17% 63%) | |
| OKLCH | oklch(0.3321 0.0792 275.5) | color: oklch(0.3321 0.0792 275.5) | |
| Lab | lab(22.01 11.72 -27.75) | color: lab(22.01 11.72 -27.75) | |
| LCH | lch(22.01 30.12 292.9) | color: lch(22.01 30.12 292.9) |
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)
#2E2E53 — rgb(46, 46, 83)
Deuteranopia (Green-blind)
#2D2D51 — rgb(45, 45, 81)
Tritanopia (Blue-blind)
#2B4B49 — rgb(43, 75, 73)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(233, 37%, 27%);
text
color: hsl(233, 37%, 27%);
border
border: 2px solid hsl(233, 37%, 27%);
gradient light
background: linear-gradient(to right, hsl(233, 37%, 47%), hsl(233, 37%, 27%));
gradient dark
background: linear-gradient(to right, hsl(233, 37%, 27%), hsl(233, 37%, 7%))
hex
background-color: #2B315E;
tailwind
bg-[hsl(233,37%,27%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(233, 37%, 27%, 0.4);
css variable
--color-primary: hsl(233, 37%, 27%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(233, 37%, 27%)?
HEX: #2B315E | RGB: rgb(43, 49, 94) | CMYK: 54%, 48%, 0%, 63% | HSV: 233°, 54%, 37%. Copy any format from the conversion table above.
What colors go well with #2B315E?
The complementary color is HSL(53, 37%, 27%). For a triadic harmony, use hues 233°, 353°, and 113°. For analogous combinations, try hues 203° and 263°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(233, 37%, 27%) in CSS?
As HSL: color: hsl(233, 37%, 27%); — As HEX: color: #2B315E; — As RGB: color: rgb(43, 49, 94); — Tailwind CSS: bg-[hsl(233,37%,27%)] — CSS variable: --color-primary: hsl(233, 37%, 27%);