HSL(232, 56%, 42%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(232,56%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(232, 56%, 42%) | color: hsl(232, 56%, 42%) | |
| HEX | #2F3FA7 | color: #2F3FA7 | |
| RGB | rgb(47, 63, 167) | color: rgb(47, 63, 167) | |
| CMYK | cmyk(72%, 62%, 0%, 35%) | — | |
| HSV | hsv(232, 72%, 65%) | — | |
| HWB | hwb(232 18% 35%) | color: hwb(232 18% 35%) | |
| OKLCH | oklch(0.4229 0.1669 270.69) | color: oklch(0.4229 0.1669 270.69) | |
| Lab | lab(31.69 29.87 -57.81) | color: lab(31.69 29.87 -57.81) | |
| LCH | lch(31.69 65.07 297.33) | color: lch(31.69 65.07 297.33) |
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)
#36368E — rgb(54, 54, 142)
Deuteranopia (Green-blind)
#353488 — rgb(53, 52, 136)
Tritanopia (Blue-blind)
#307A76 — rgb(48, 122, 118)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(232, 56%, 42%);
text
color: hsl(232, 56%, 42%);
border
border: 2px solid hsl(232, 56%, 42%);
gradient light
background: linear-gradient(to right, hsl(232, 56%, 62%), hsl(232, 56%, 42%));
gradient dark
background: linear-gradient(to right, hsl(232, 56%, 42%), hsl(232, 56%, 22%))
hex
background-color: #2F3FA7;
tailwind
bg-[hsl(232,56%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(232, 56%, 42%, 0.4);
css variable
--color-primary: hsl(232, 56%, 42%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(232, 56%, 42%)?
HEX: #2F3FA7 | RGB: rgb(47, 63, 167) | CMYK: 72%, 62%, 0%, 35% | HSV: 232°, 72%, 65%. Copy any format from the conversion table above.
What colors go well with #2F3FA7?
The complementary color is HSL(52, 56%, 42%). 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, 56%, 42%) in CSS?
As HSL: color: hsl(232, 56%, 42%); — As HEX: color: #2F3FA7; — As RGB: color: rgb(47, 63, 167); — Tailwind CSS: bg-[hsl(232,56%,42%)] — CSS variable: --color-primary: hsl(232, 56%, 42%);