HSL(228, 50%, 42%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(228,50%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(228, 50%, 42%) | color: hsl(228, 50%, 42%) | |
| HEX | #364BA1 | color: #364BA1 | |
| RGB | rgb(54, 75, 161) | color: rgb(54, 75, 161) | |
| CMYK | cmyk(66%, 53%, 0%, 37%) | — | |
| HSV | hsv(228, 66%, 63%) | — | |
| HWB | hwb(228 21% 37%) | color: hwb(228 21% 37%) | |
| OKLCH | oklch(0.4455 0.1412 269.54) | color: oklch(0.4455 0.1412 269.54) | |
| Lab | lab(34.78 20.79 -49.16) | color: lab(34.78 20.79 -49.16) | |
| LCH | lch(34.78 53.38 292.92) | color: lch(34.78 53.38 292.92) |
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)
#3F3F8C — rgb(63, 63, 140)
Deuteranopia (Green-blind)
#3E3C87 — rgb(62, 60, 135)
Tritanopia (Blue-blind)
#377C78 — rgb(55, 124, 120)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(228, 50%, 42%);
text
color: hsl(228, 50%, 42%);
border
border: 2px solid hsl(228, 50%, 42%);
gradient light
background: linear-gradient(to right, hsl(228, 50%, 62%), hsl(228, 50%, 42%));
gradient dark
background: linear-gradient(to right, hsl(228, 50%, 42%), hsl(228, 50%, 22%))
hex
background-color: #364BA1;
tailwind
bg-[hsl(228,50%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(228, 50%, 42%, 0.4);
css variable
--color-primary: hsl(228, 50%, 42%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(228, 50%, 42%)?
HEX: #364BA1 | RGB: rgb(54, 75, 161) | CMYK: 66%, 53%, 0%, 37% | HSV: 228°, 66%, 63%. Copy any format from the conversion table above.
What colors go well with #364BA1?
The complementary color is HSL(48, 50%, 42%). For a triadic harmony, use hues 228°, 348°, and 108°. For analogous combinations, try hues 198° and 258°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(228, 50%, 42%) in CSS?
As HSL: color: hsl(228, 50%, 42%); — As HEX: color: #364BA1; — As RGB: color: rgb(54, 75, 161); — Tailwind CSS: bg-[hsl(228,50%,42%)] — CSS variable: --color-primary: hsl(228, 50%, 42%);