HSL(151, 20%, 21%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(151,20%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(151, 20%, 21%) | color: hsl(151, 20%, 21%) | |
| HEX | #2B4036 | color: #2B4036 | |
| RGB | rgb(43, 64, 54) | color: rgb(43, 64, 54) | |
| CMYK | cmyk(33%, 0%, 16%, 75%) | — | |
| HSV | hsv(151, 33%, 25%) | — | |
| HWB | hwb(151 17% 75%) | color: hwb(151 17% 75%) | |
| OKLCH | oklch(0.3503 0.0319 163.64) | color: oklch(0.3503 0.0319 163.64) | |
| Lab | lab(25.1 -10.87 3.48) | color: lab(25.1 -10.87 3.48) | |
| LCH | lch(25.1 11.41 162.25) | color: lch(25.1 11.41 162.25) |
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)
#343438 — rgb(52, 52, 56)
Deuteranopia (Green-blind)
#333139 — rgb(51, 49, 57)
Tritanopia (Blue-blind)
#2C3A3B — rgb(44, 58, 59)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(151, 20%, 21%);
text
color: hsl(151, 20%, 21%);
border
border: 2px solid hsl(151, 20%, 21%);
gradient light
background: linear-gradient(to right, hsl(151, 20%, 41%), hsl(151, 20%, 21%));
gradient dark
background: linear-gradient(to right, hsl(151, 20%, 21%), hsl(151, 20%, 1%))
hex
background-color: #2B4036;
tailwind
bg-[hsl(151,20%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(151, 20%, 21%, 0.4);
css variable
--color-primary: hsl(151, 20%, 21%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(151, 20%, 21%)?
HEX: #2B4036 | RGB: rgb(43, 64, 54) | CMYK: 33%, 0%, 16%, 75% | HSV: 151°, 33%, 25%. Copy any format from the conversion table above.
What colors go well with #2B4036?
The complementary color is HSL(331, 20%, 21%). For a triadic harmony, use hues 151°, 271°, and 31°. For analogous combinations, try hues 121° and 181°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(151, 20%, 21%) in CSS?
As HSL: color: hsl(151, 20%, 21%); — As HEX: color: #2B4036; — As RGB: color: rgb(43, 64, 54); — Tailwind CSS: bg-[hsl(151,20%,21%)] — CSS variable: --color-primary: hsl(151, 20%, 21%);