HSL(192, 42%, 31%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(192,42%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(192, 42%, 31%) | color: hsl(192, 42%, 31%) | |
| HEX | #2E6370 | color: #2E6370 | |
| RGB | rgb(46, 99, 112) | color: rgb(46, 99, 112) | |
| CMYK | cmyk(59%, 12%, 0%, 56%) | — | |
| HSV | hsv(192, 59%, 44%) | — | |
| HWB | hwb(192 18% 56%) | color: hwb(192 18% 56%) | |
| OKLCH | oklch(0.469 0.0598 216.02) | color: oklch(0.469 0.0598 216.02) | |
| Lab | lab(39.03 -13.48 -12.69) | color: lab(39.03 -13.48 -12.69) | |
| LCH | lch(39.03 18.51 223.27) | color: lch(39.03 18.51 223.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)
#45456D — rgb(69, 69, 109)
Deuteranopia (Green-blind)
#423E6C — rgb(66, 62, 108)
Tritanopia (Blue-blind)
#316A6A — rgb(49, 106, 106)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(192, 42%, 31%);
text
color: hsl(192, 42%, 31%);
border
border: 2px solid hsl(192, 42%, 31%);
gradient light
background: linear-gradient(to right, hsl(192, 42%, 51%), hsl(192, 42%, 31%));
gradient dark
background: linear-gradient(to right, hsl(192, 42%, 31%), hsl(192, 42%, 11%))
hex
background-color: #2E6370;
tailwind
bg-[hsl(192,42%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(192, 42%, 31%, 0.4);
css variable
--color-primary: hsl(192, 42%, 31%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(192, 42%, 31%)?
HEX: #2E6370 | RGB: rgb(46, 99, 112) | CMYK: 59%, 12%, 0%, 56% | HSV: 192°, 59%, 44%. Copy any format from the conversion table above.
What colors go well with #2E6370?
The complementary color is HSL(12, 42%, 31%). For a triadic harmony, use hues 192°, 312°, and 72°. For analogous combinations, try hues 162° and 222°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(192, 42%, 31%) in CSS?
As HSL: color: hsl(192, 42%, 31%); — As HEX: color: #2E6370; — As RGB: color: rgb(46, 99, 112); — Tailwind CSS: bg-[hsl(192,42%,31%)] — CSS variable: --color-primary: hsl(192, 42%, 31%);