HSL(218, 63%, 40%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(218,63%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(218, 63%, 40%) | color: hsl(218, 63%, 40%) | |
| HEX | #2655A6 | color: #2655A6 | |
| RGB | rgb(38, 85, 166) | color: rgb(38, 85, 166) | |
| CMYK | cmyk(77%, 49%, 0%, 35%) | — | |
| HSV | hsv(218, 77%, 65%) | — | |
| HWB | hwb(218 15% 35%) | color: hwb(218 15% 35%) | |
| OKLCH | oklch(0.4633 0.1405 260.5) | color: oklch(0.4633 0.1405 260.5) | |
| Lab | lab(37.23 13.7 -48.24) | color: lab(37.23 13.7 -48.24) | |
| LCH | lch(37.23 50.15 285.85) | color: lch(37.23 50.15 285.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)
#3A3B92 — rgb(58, 59, 146)
Deuteranopia (Green-blind)
#38348E — rgb(56, 52, 142)
Tritanopia (Blue-blind)
#288380 — rgb(40, 131, 128)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(218, 63%, 40%);
text
color: hsl(218, 63%, 40%);
border
border: 2px solid hsl(218, 63%, 40%);
gradient light
background: linear-gradient(to right, hsl(218, 63%, 60%), hsl(218, 63%, 40%));
gradient dark
background: linear-gradient(to right, hsl(218, 63%, 40%), hsl(218, 63%, 20%))
hex
background-color: #2655A6;
tailwind
bg-[hsl(218,63%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(218, 63%, 40%, 0.4);
css variable
--color-primary: hsl(218, 63%, 40%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(218, 63%, 40%)?
HEX: #2655A6 | RGB: rgb(38, 85, 166) | CMYK: 77%, 49%, 0%, 35% | HSV: 218°, 77%, 65%. Copy any format from the conversion table above.
What colors go well with #2655A6?
The complementary color is HSL(38, 63%, 40%). For a triadic harmony, use hues 218°, 338°, and 98°. For analogous combinations, try hues 188° and 248°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(218, 63%, 40%) in CSS?
As HSL: color: hsl(218, 63%, 40%); — As HEX: color: #2655A6; — As RGB: color: rgb(38, 85, 166); — Tailwind CSS: bg-[hsl(218,63%,40%)] — CSS variable: --color-primary: hsl(218, 63%, 40%);