HSL(237, 54%, 40%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(237,54%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(237, 54%, 40%) | color: hsl(237, 54%, 40%) | |
| HEX | #2F349D | color: #2F349D | |
| RGB | rgb(47, 52, 157) | color: rgb(47, 52, 157) | |
| CMYK | cmyk(70%, 67%, 0%, 38%) | — | |
| HSV | hsv(237, 70%, 62%) | — | |
| HWB | hwb(237 19% 38%) | color: hwb(237 19% 38%) | |
| OKLCH | oklch(0.3938 0.1668 273.66) | color: oklch(0.3938 0.1668 273.66) | |
| Lab | lab(28.1 33.38 -57.64) | color: lab(28.1 33.38 -57.64) | |
| LCH | lch(28.1 66.61 300.08) | color: lch(28.1 66.61 300.08) |
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)
#313184 — rgb(49, 49, 132)
Deuteranopia (Green-blind)
#31317E — rgb(49, 49, 126)
Tritanopia (Blue-blind)
#2F706B — rgb(47, 112, 107)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(237, 54%, 40%);
text
color: hsl(237, 54%, 40%);
border
border: 2px solid hsl(237, 54%, 40%);
gradient light
background: linear-gradient(to right, hsl(237, 54%, 60%), hsl(237, 54%, 40%));
gradient dark
background: linear-gradient(to right, hsl(237, 54%, 40%), hsl(237, 54%, 20%))
hex
background-color: #2F349D;
tailwind
bg-[hsl(237,54%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(237, 54%, 40%, 0.4);
css variable
--color-primary: hsl(237, 54%, 40%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(237, 54%, 40%)?
HEX: #2F349D | RGB: rgb(47, 52, 157) | CMYK: 70%, 67%, 0%, 38% | HSV: 237°, 70%, 62%. Copy any format from the conversion table above.
What colors go well with #2F349D?
The complementary color is HSL(57, 54%, 40%). For a triadic harmony, use hues 237°, 357°, and 117°. For analogous combinations, try hues 207° and 267°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(237, 54%, 40%) in CSS?
As HSL: color: hsl(237, 54%, 40%); — As HEX: color: #2F349D; — As RGB: color: rgb(47, 52, 157); — Tailwind CSS: bg-[hsl(237,54%,40%)] — CSS variable: --color-primary: hsl(237, 54%, 40%);