HSL(232, 70%, 27%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(232,70%,27%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(232, 70%, 27%) | color: hsl(232, 70%, 27%) | |
| HEX | #152275 | color: #152275 | |
| RGB | rgb(21, 34, 117) | color: rgb(21, 34, 117) | |
| CMYK | cmyk(82%, 71%, 0%, 54%) | — | |
| HSV | hsv(232, 82%, 46%) | — | |
| HWB | hwb(232 8% 54%) | color: hwb(232 8% 54%) | |
| OKLCH | oklch(0.3068 0.1413 268.8) | color: oklch(0.3068 0.1413 268.8) | |
| Lab | lab(18.31 27.34 -48.77) | color: lab(18.31 27.34 -48.77) | |
| LCH | lch(18.31 55.91 299.27) | color: lch(18.31 55.91 299.27) |
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)
#1B1B61 — rgb(27, 27, 97)
Deuteranopia (Green-blind)
#1A195C — rgb(26, 25, 92)
Tritanopia (Blue-blind)
#16514E — rgb(22, 81, 78)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(232, 70%, 27%);
text
color: hsl(232, 70%, 27%);
border
border: 2px solid hsl(232, 70%, 27%);
gradient light
background: linear-gradient(to right, hsl(232, 70%, 47%), hsl(232, 70%, 27%));
gradient dark
background: linear-gradient(to right, hsl(232, 70%, 27%), hsl(232, 70%, 7%))
hex
background-color: #152275;
tailwind
bg-[hsl(232,70%,27%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(232, 70%, 27%, 0.4);
css variable
--color-primary: hsl(232, 70%, 27%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(232, 70%, 27%)?
HEX: #152275 | RGB: rgb(21, 34, 117) | CMYK: 82%, 71%, 0%, 54% | HSV: 232°, 82%, 46%. Copy any format from the conversion table above.
What colors go well with #152275?
The complementary color is HSL(52, 70%, 27%). For a triadic harmony, use hues 232°, 352°, and 112°. For analogous combinations, try hues 202° and 262°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(232, 70%, 27%) in CSS?
As HSL: color: hsl(232, 70%, 27%); — As HEX: color: #152275; — As RGB: color: rgb(21, 34, 117); — Tailwind CSS: bg-[hsl(232,70%,27%)] — CSS variable: --color-primary: hsl(232, 70%, 27%);