HSL(228, 27%, 28%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(228,27%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(228, 27%, 28%) | color: hsl(228, 27%, 28%) | |
| HEX | #343C5B | color: #343C5B | |
| RGB | rgb(52, 60, 91) | color: rgb(52, 60, 91) | |
| CMYK | cmyk(43%, 34%, 0%, 64%) | — | |
| HSV | hsv(228, 43%, 36%) | — | |
| HWB | hwb(228 21% 64%) | color: hwb(228 21% 64%) | |
| OKLCH | oklch(0.3633 0.0548 272.37) | color: oklch(0.3633 0.0548 272.37) | |
| Lab | lab(25.91 5.68 -19.59) | color: lab(25.91 5.68 -19.59) | |
| LCH | lch(25.91 20.4 286.17) | color: lch(25.91 20.4 286.17) |
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)
#373853 — rgb(55, 56, 83)
Deuteranopia (Green-blind)
#373652 — rgb(55, 54, 82)
Tritanopia (Blue-blind)
#344E4C — rgb(52, 78, 76)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(228, 27%, 28%);
text
color: hsl(228, 27%, 28%);
border
border: 2px solid hsl(228, 27%, 28%);
gradient light
background: linear-gradient(to right, hsl(228, 27%, 48%), hsl(228, 27%, 28%));
gradient dark
background: linear-gradient(to right, hsl(228, 27%, 28%), hsl(228, 27%, 8%))
hex
background-color: #343C5B;
tailwind
bg-[hsl(228,27%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(228, 27%, 28%, 0.4);
css variable
--color-primary: hsl(228, 27%, 28%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(228, 27%, 28%)?
HEX: #343C5B | RGB: rgb(52, 60, 91) | CMYK: 43%, 34%, 0%, 64% | HSV: 228°, 43%, 36%. Copy any format from the conversion table above.
What colors go well with #343C5B?
The complementary color is HSL(48, 27%, 28%). 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, 27%, 28%) in CSS?
As HSL: color: hsl(228, 27%, 28%); — As HEX: color: #343C5B; — As RGB: color: rgb(52, 60, 91); — Tailwind CSS: bg-[hsl(228,27%,28%)] — CSS variable: --color-primary: hsl(228, 27%, 28%);