HSL(231, 42%, 36%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(231,42%,36%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(231, 42%, 36%) | color: hsl(231, 42%, 36%) | |
| HEX | #354182 | color: #354182 | |
| RGB | rgb(53, 65, 130) | color: rgb(53, 65, 130) | |
| CMYK | cmyk(59%, 50%, 0%, 49%) | — | |
| HSV | hsv(231, 59%, 51%) | — | |
| HWB | hwb(231 21% 49%) | color: hwb(231 21% 49%) | |
| OKLCH | oklch(0.4007 0.1094 272.67) | color: oklch(0.4007 0.1094 272.67) | |
| Lab | lab(29.78 16.02 -38.26) | color: lab(29.78 16.02 -38.26) | |
| LCH | lch(29.78 41.48 292.72) | color: lch(29.78 41.48 292.72) |
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)
#3A3A72 — rgb(58, 58, 114)
Deuteranopia (Green-blind)
#3A396F — rgb(58, 57, 111)
Tritanopia (Blue-blind)
#366663 — rgb(54, 102, 99)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(231, 42%, 36%);
text
color: hsl(231, 42%, 36%);
border
border: 2px solid hsl(231, 42%, 36%);
gradient light
background: linear-gradient(to right, hsl(231, 42%, 56%), hsl(231, 42%, 36%));
gradient dark
background: linear-gradient(to right, hsl(231, 42%, 36%), hsl(231, 42%, 16%))
hex
background-color: #354182;
tailwind
bg-[hsl(231,42%,36%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(231, 42%, 36%, 0.4);
css variable
--color-primary: hsl(231, 42%, 36%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(231, 42%, 36%)?
HEX: #354182 | RGB: rgb(53, 65, 130) | CMYK: 59%, 50%, 0%, 49% | HSV: 231°, 59%, 51%. Copy any format from the conversion table above.
What colors go well with #354182?
The complementary color is HSL(51, 42%, 36%). 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, 42%, 36%) in CSS?
As HSL: color: hsl(231, 42%, 36%); — As HEX: color: #354182; — As RGB: color: rgb(53, 65, 130); — Tailwind CSS: bg-[hsl(231,42%,36%)] — CSS variable: --color-primary: hsl(231, 42%, 36%);