HSL(231, 56%, 39%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(231,56%,39%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(231, 56%, 39%) | color: hsl(231, 56%, 39%) | |
| HEX | #2C3C9B | color: #2C3C9B | |
| RGB | rgb(44, 60, 155) | color: rgb(44, 60, 155) | |
| CMYK | cmyk(72%, 61%, 0%, 39%) | — | |
| HSV | hsv(231, 72%, 61%) | — | |
| HWB | hwb(231 17% 39%) | color: hwb(231 17% 39%) | |
| OKLCH | oklch(0.4049 0.155 270.51) | color: oklch(0.4049 0.155 270.51) | |
| Lab | lab(29.75 27.02 -53.73) | color: lab(29.75 27.02 -53.73) | |
| LCH | lch(29.75 60.14 296.7) | color: lch(29.75 60.14 296.7) |
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)
#333384 — rgb(51, 51, 132)
Deuteranopia (Green-blind)
#32317F — rgb(50, 49, 127)
Tritanopia (Blue-blind)
#2D726E — rgb(45, 114, 110)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(231, 56%, 39%);
text
color: hsl(231, 56%, 39%);
border
border: 2px solid hsl(231, 56%, 39%);
gradient light
background: linear-gradient(to right, hsl(231, 56%, 59%), hsl(231, 56%, 39%));
gradient dark
background: linear-gradient(to right, hsl(231, 56%, 39%), hsl(231, 56%, 19%))
hex
background-color: #2C3C9B;
tailwind
bg-[hsl(231,56%,39%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(231, 56%, 39%, 0.4);
css variable
--color-primary: hsl(231, 56%, 39%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(231, 56%, 39%)?
HEX: #2C3C9B | RGB: rgb(44, 60, 155) | CMYK: 72%, 61%, 0%, 39% | HSV: 231°, 72%, 61%. Copy any format from the conversion table above.
What colors go well with #2C3C9B?
The complementary color is HSL(51, 56%, 39%). For a triadic harmony, use hues 231°, 351°, and 111°. For analogous combinations, try hues 201° and 261°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(231, 56%, 39%) in CSS?
As HSL: color: hsl(231, 56%, 39%); — As HEX: color: #2C3C9B; — As RGB: color: rgb(44, 60, 155); — Tailwind CSS: bg-[hsl(231,56%,39%)] — CSS variable: --color-primary: hsl(231, 56%, 39%);