HSL(218, 40%, 43%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(218,40%,43%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(218, 40%, 43%) | color: hsl(218, 40%, 43%) | |
| HEX | #42629A | color: #42629A | |
| RGB | rgb(66, 98, 154) | color: rgb(66, 98, 154) | |
| CMYK | cmyk(57%, 36%, 0%, 40%) | — | |
| HSV | hsv(218, 57%, 60%) | — | |
| HWB | hwb(218 26% 40%) | color: hwb(218 26% 40%) | |
| OKLCH | oklch(0.498 0.0976 260.98) | color: oklch(0.498 0.0976 260.98) | |
| Lab | lab(41.57 5.74 -34.08) | color: lab(41.57 5.74 -34.08) | |
| LCH | lch(41.57 34.56 279.56) | color: lch(41.57 34.56 279.56) |
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)
#50508C — rgb(80, 80, 140)
Deuteranopia (Green-blind)
#4E4C89 — rgb(78, 76, 137)
Tritanopia (Blue-blind)
#44827F — rgb(68, 130, 127)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(218, 40%, 43%);
text
color: hsl(218, 40%, 43%);
border
border: 2px solid hsl(218, 40%, 43%);
gradient light
background: linear-gradient(to right, hsl(218, 40%, 63%), hsl(218, 40%, 43%));
gradient dark
background: linear-gradient(to right, hsl(218, 40%, 43%), hsl(218, 40%, 23%))
hex
background-color: #42629A;
tailwind
bg-[hsl(218,40%,43%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(218, 40%, 43%, 0.4);
css variable
--color-primary: hsl(218, 40%, 43%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(218, 40%, 43%)?
HEX: #42629A | RGB: rgb(66, 98, 154) | CMYK: 57%, 36%, 0%, 40% | HSV: 218°, 57%, 60%. Copy any format from the conversion table above.
What colors go well with #42629A?
The complementary color is HSL(38, 40%, 43%). 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, 40%, 43%) in CSS?
As HSL: color: hsl(218, 40%, 43%); — As HEX: color: #42629A; — As RGB: color: rgb(66, 98, 154); — Tailwind CSS: bg-[hsl(218,40%,43%)] — CSS variable: --color-primary: hsl(218, 40%, 43%);