HSL(228, 20%, 40%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(228,20%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(228, 20%, 40%) | color: hsl(228, 20%, 40%) | |
| HEX | #525A7A | color: #525A7A | |
| RGB | rgb(82, 90, 122) | color: rgb(82, 90, 122) | |
| CMYK | cmyk(33%, 26%, 0%, 52%) | — | |
| HSV | hsv(228, 33%, 48%) | — | |
| HWB | hwb(228 32% 52%) | color: hwb(228 32% 52%) | |
| OKLCH | oklch(0.4737 0.0528 273.38) | color: oklch(0.4737 0.0528 273.38) | |
| Lab | lab(38.74 5.07 -19.07) | color: lab(38.74 5.07 -19.07) | |
| LCH | lch(38.74 19.73 284.89) | color: lch(38.74 19.73 284.89) |
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)
#555672 — rgb(85, 86, 114)
Deuteranopia (Green-blind)
#555470 — rgb(85, 84, 112)
Tritanopia (Blue-blind)
#526C6B — rgb(82, 108, 107)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(228, 20%, 40%);
text
color: hsl(228, 20%, 40%);
border
border: 2px solid hsl(228, 20%, 40%);
gradient light
background: linear-gradient(to right, hsl(228, 20%, 60%), hsl(228, 20%, 40%));
gradient dark
background: linear-gradient(to right, hsl(228, 20%, 40%), hsl(228, 20%, 20%))
hex
background-color: #525A7A;
tailwind
bg-[hsl(228,20%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(228, 20%, 40%, 0.4);
css variable
--color-primary: hsl(228, 20%, 40%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(228, 20%, 40%)?
HEX: #525A7A | RGB: rgb(82, 90, 122) | CMYK: 33%, 26%, 0%, 52% | HSV: 228°, 33%, 48%. Copy any format from the conversion table above.
What colors go well with #525A7A?
The complementary color is HSL(48, 20%, 40%). 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, 20%, 40%) in CSS?
As HSL: color: hsl(228, 20%, 40%); — As HEX: color: #525A7A; — As RGB: color: rgb(82, 90, 122); — Tailwind CSS: bg-[hsl(228,20%,40%)] — CSS variable: --color-primary: hsl(228, 20%, 40%);