HSL(232, 62%, 40%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(232,62%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(232, 62%, 40%) | color: hsl(232, 62%, 40%) | |
| HEX | #2738A5 | color: #2738A5 | |
| RGB | rgb(39, 56, 165) | color: rgb(39, 56, 165) | |
| CMYK | cmyk(76%, 66%, 0%, 35%) | — | |
| HSV | hsv(232, 76%, 65%) | — | |
| HWB | hwb(232 16% 35%) | color: hwb(232 16% 35%) | |
| OKLCH | oklch(0.404 0.1749 269.58) | color: oklch(0.404 0.1749 269.58) | |
| Lab | lab(29.35 32.76 -60.45) | color: lab(29.35 32.76 -60.45) | |
| LCH | lch(29.35 68.76 298.45) | color: lch(29.35 68.76 298.45) |
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)
#2E2F8B — rgb(46, 47, 139)
Deuteranopia (Green-blind)
#2D2C84 — rgb(45, 44, 132)
Tritanopia (Blue-blind)
#287671 — rgb(40, 118, 113)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(232, 62%, 40%);
text
color: hsl(232, 62%, 40%);
border
border: 2px solid hsl(232, 62%, 40%);
gradient light
background: linear-gradient(to right, hsl(232, 62%, 60%), hsl(232, 62%, 40%));
gradient dark
background: linear-gradient(to right, hsl(232, 62%, 40%), hsl(232, 62%, 20%))
hex
background-color: #2738A5;
tailwind
bg-[hsl(232,62%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(232, 62%, 40%, 0.4);
css variable
--color-primary: hsl(232, 62%, 40%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(232, 62%, 40%)?
HEX: #2738A5 | RGB: rgb(39, 56, 165) | CMYK: 76%, 66%, 0%, 35% | HSV: 232°, 76%, 65%. Copy any format from the conversion table above.
What colors go well with #2738A5?
The complementary color is HSL(52, 62%, 40%). For a triadic harmony, use hues 232°, 352°, and 112°. For analogous combinations, try hues 202° and 262°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(232, 62%, 40%) in CSS?
As HSL: color: hsl(232, 62%, 40%); — As HEX: color: #2738A5; — As RGB: color: rgb(39, 56, 165); — Tailwind CSS: bg-[hsl(232,62%,40%)] — CSS variable: --color-primary: hsl(232, 62%, 40%);