HSL(228, 70%, 50%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(228,70%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(228, 70%, 50%) | color: hsl(228, 70%, 50%) | |
| HEX | #264AD9 | color: #264AD9 | |
| RGB | rgb(38, 74, 217) | color: rgb(38, 74, 217) | |
| CMYK | cmyk(82%, 66%, 0%, 15%) | — | |
| HSV | hsv(228, 82%, 85%) | — | |
| HWB | hwb(228 15% 15%) | color: hwb(228 15% 15%) | |
| OKLCH | oklch(0.4848 0.221 266.38) | color: oklch(0.4848 0.221 266.38) | |
| Lab | lab(38.41 40.23 -76.13) | color: lab(38.41 40.23 -76.13) | |
| LCH | lch(38.41 86.11 297.85) | color: lch(38.41 86.11 297.85) |
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)
#3636B6 — rgb(54, 54, 182)
Deuteranopia (Green-blind)
#3431AE — rgb(52, 49, 174)
Tritanopia (Blue-blind)
#289B95 — rgb(40, 155, 149)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(228, 70%, 50%);
text
color: hsl(228, 70%, 50%);
border
border: 2px solid hsl(228, 70%, 50%);
gradient light
background: linear-gradient(to right, hsl(228, 70%, 70%), hsl(228, 70%, 50%));
gradient dark
background: linear-gradient(to right, hsl(228, 70%, 50%), hsl(228, 70%, 30%))
hex
background-color: #264AD9;
tailwind
bg-[hsl(228,70%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(228, 70%, 50%, 0.4);
css variable
--color-primary: hsl(228, 70%, 50%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(228, 70%, 50%)?
HEX: #264AD9 | RGB: rgb(38, 74, 217) | CMYK: 82%, 66%, 0%, 15% | HSV: 228°, 82%, 85%. Copy any format from the conversion table above.
What colors go well with #264AD9?
The complementary color is HSL(48, 70%, 50%). 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, 70%, 50%) in CSS?
As HSL: color: hsl(228, 70%, 50%); — As HEX: color: #264AD9; — As RGB: color: rgb(38, 74, 217); — Tailwind CSS: bg-[hsl(228,70%,50%)] — CSS variable: --color-primary: hsl(228, 70%, 50%);