HSL(218, 70%, 27%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(218,70%,27%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(218, 70%, 27%) | color: hsl(218, 70%, 27%) | |
| HEX | #153875 | color: #153875 | |
| RGB | rgb(21, 56, 117) | color: rgb(21, 56, 117) | |
| CMYK | cmyk(82%, 52%, 0%, 54%) | — | |
| HSV | hsv(218, 82%, 46%) | — | |
| HWB | hwb(218 8% 54%) | color: hwb(218 8% 54%) | |
| OKLCH | oklch(0.3534 0.1126 260.66) | color: oklch(0.3534 0.1126 260.66) | |
| Lab | lab(24.55 11.73 -38.6) | color: lab(24.55 11.73 -38.6) | |
| LCH | lch(24.55 40.34 286.9) | color: lch(24.55 40.34 286.9) |
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)
#242466 — rgb(36, 36, 102)
Deuteranopia (Green-blind)
#222063 — rgb(34, 32, 99)
Tritanopia (Blue-blind)
#175B58 — rgb(23, 91, 88)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(218, 70%, 27%);
text
color: hsl(218, 70%, 27%);
border
border: 2px solid hsl(218, 70%, 27%);
gradient light
background: linear-gradient(to right, hsl(218, 70%, 47%), hsl(218, 70%, 27%));
gradient dark
background: linear-gradient(to right, hsl(218, 70%, 27%), hsl(218, 70%, 7%))
hex
background-color: #153875;
tailwind
bg-[hsl(218,70%,27%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(218, 70%, 27%, 0.4);
css variable
--color-primary: hsl(218, 70%, 27%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(218, 70%, 27%)?
HEX: #153875 | RGB: rgb(21, 56, 117) | CMYK: 82%, 52%, 0%, 54% | HSV: 218°, 82%, 46%. Copy any format from the conversion table above.
What colors go well with #153875?
The complementary color is HSL(38, 70%, 27%). 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, 70%, 27%) in CSS?
As HSL: color: hsl(218, 70%, 27%); — As HEX: color: #153875; — As RGB: color: rgb(21, 56, 117); — Tailwind CSS: bg-[hsl(218,70%,27%)] — CSS variable: --color-primary: hsl(218, 70%, 27%);