HSL(158, 23%, 24%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(158,23%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(158, 23%, 24%) | color: hsl(158, 23%, 24%) | |
| HEX | #2F4B41 | color: #2F4B41 | |
| RGB | rgb(47, 75, 65) | color: rgb(47, 75, 65) | |
| CMYK | cmyk(37%, 0%, 13%, 71%) | — | |
| HSV | hsv(159, 37%, 29%) | — | |
| HWB | hwb(159 18% 71%) | color: hwb(159 18% 71%) | |
| OKLCH | oklch(0.3871 0.0381 169.84) | color: oklch(0.3871 0.0381 169.84) | |
| Lab | lab(29.46 -13.17 2.62) | color: lab(29.46 -13.17 2.62) | |
| LCH | lch(29.46 13.43 168.75) | color: lch(29.46 13.43 168.75) |
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)
#3B3B43 — rgb(59, 59, 67)
Deuteranopia (Green-blind)
#3A3744 — rgb(58, 55, 68)
Tritanopia (Blue-blind)
#304546 — rgb(48, 69, 70)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(158, 23%, 24%);
text
color: hsl(158, 23%, 24%);
border
border: 2px solid hsl(158, 23%, 24%);
gradient light
background: linear-gradient(to right, hsl(158, 23%, 44%), hsl(158, 23%, 24%));
gradient dark
background: linear-gradient(to right, hsl(158, 23%, 24%), hsl(158, 23%, 4%))
hex
background-color: #2F4B41;
tailwind
bg-[hsl(158,23%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(158, 23%, 24%, 0.4);
css variable
--color-primary: hsl(158, 23%, 24%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(158, 23%, 24%)?
HEX: #2F4B41 | RGB: rgb(47, 75, 65) | CMYK: 37%, 0%, 13%, 71% | HSV: 159°, 37%, 29%. Copy any format from the conversion table above.
What colors go well with #2F4B41?
The complementary color is HSL(338, 23%, 24%). For a triadic harmony, use hues 158°, 278°, and 38°. For analogous combinations, try hues 128° and 188°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(158, 23%, 24%) in CSS?
As HSL: color: hsl(158, 23%, 24%); — As HEX: color: #2F4B41; — As RGB: color: rgb(47, 75, 65); — Tailwind CSS: bg-[hsl(158,23%,24%)] — CSS variable: --color-primary: hsl(158, 23%, 24%);