HSL(228, 80%, 48%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(228,80%,48%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(228, 80%, 48%) | color: hsl(228, 80%, 48%) | |
| HEX | #1840DC | color: #1840DC | |
| RGB | rgb(24, 64, 220) | color: rgb(24, 64, 220) | |
| CMYK | cmyk(89%, 71%, 0%, 14%) | — | |
| HSV | hsv(228, 89%, 86%) | — | |
| HWB | hwb(228 9% 14%) | color: hwb(228 9% 14%) | |
| OKLCH | oklch(0.4672 0.238 265.3) | color: oklch(0.4672 0.238 265.3) | |
| Lab | lab(36.03 46.65 -81.77) | color: lab(36.03 46.65 -81.77) | |
| LCH | lch(36.03 94.14 299.7) | color: lch(36.03 94.14 299.7) |
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)
#292AB6 — rgb(41, 42, 182)
Deuteranopia (Green-blind)
#2724AD — rgb(39, 36, 173)
Tritanopia (Blue-blind)
#1A9892 — rgb(26, 152, 146)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(228, 80%, 48%);
text
color: hsl(228, 80%, 48%);
border
border: 2px solid hsl(228, 80%, 48%);
gradient light
background: linear-gradient(to right, hsl(228, 80%, 68%), hsl(228, 80%, 48%));
gradient dark
background: linear-gradient(to right, hsl(228, 80%, 48%), hsl(228, 80%, 28%))
hex
background-color: #1840DC;
tailwind
bg-[hsl(228,80%,48%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(228, 80%, 48%, 0.4);
css variable
--color-primary: hsl(228, 80%, 48%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(228, 80%, 48%)?
HEX: #1840DC | RGB: rgb(24, 64, 220) | CMYK: 89%, 71%, 0%, 14% | HSV: 228°, 89%, 86%. Copy any format from the conversion table above.
What colors go well with #1840DC?
The complementary color is HSL(48, 80%, 48%). 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, 80%, 48%) in CSS?
As HSL: color: hsl(228, 80%, 48%); — As HEX: color: #1840DC; — As RGB: color: rgb(24, 64, 220); — Tailwind CSS: bg-[hsl(228,80%,48%)] — CSS variable: --color-primary: hsl(228, 80%, 48%);