HSL(226, 21%, 16%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(226,21%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(226, 21%, 16%) | color: hsl(226, 21%, 16%) | |
| HEX | #202431 | color: #202431 | |
| RGB | rgb(32, 36, 49) | color: rgb(32, 36, 49) | |
| CMYK | cmyk(35%, 27%, 0%, 81%) | — | |
| HSV | hsv(226, 35%, 19%) | — | |
| HWB | hwb(226 12% 81%) | color: hwb(226 12% 81%) | |
| OKLCH | oklch(0.2623 0.0251 271.3) | color: oklch(0.2623 0.0251 271.3) | |
| Lab | lab(14.35 1.99 -9.12) | color: lab(14.35 1.99 -9.12) | |
| LCH | lch(14.35 9.33 282.31) | color: lch(14.35 9.33 282.31) |
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)
#22222E — rgb(34, 34, 46)
Deuteranopia (Green-blind)
#22212D — rgb(34, 33, 45)
Tritanopia (Blue-blind)
#202B2B — rgb(32, 43, 43)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(226, 21%, 16%);
text
color: hsl(226, 21%, 16%);
border
border: 2px solid hsl(226, 21%, 16%);
gradient light
background: linear-gradient(to right, hsl(226, 21%, 36%), hsl(226, 21%, 16%));
gradient dark
background: linear-gradient(to right, hsl(226, 21%, 16%), hsl(226, 21%, 0%))
hex
background-color: #202431;
tailwind
bg-[hsl(226,21%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(226, 21%, 16%, 0.4);
css variable
--color-primary: hsl(226, 21%, 16%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(226, 21%, 16%)?
HEX: #202431 | RGB: rgb(32, 36, 49) | CMYK: 35%, 27%, 0%, 81% | HSV: 226°, 35%, 19%. Copy any format from the conversion table above.
What colors go well with #202431?
The complementary color is HSL(46, 21%, 16%). For a triadic harmony, use hues 226°, 346°, and 106°. For analogous combinations, try hues 196° and 256°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(226, 21%, 16%) in CSS?
As HSL: color: hsl(226, 21%, 16%); — As HEX: color: #202431; — As RGB: color: rgb(32, 36, 49); — Tailwind CSS: bg-[hsl(226,21%,16%)] — CSS variable: --color-primary: hsl(226, 21%, 16%);