HSL(193, 42%, 21%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(193,42%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(193, 42%, 21%) | color: hsl(193, 42%, 21%) | |
| HEX | #1F424C | color: #1F424C | |
| RGB | rgb(31, 66, 76) | color: rgb(31, 66, 76) | |
| CMYK | cmyk(59%, 13%, 0%, 70%) | — | |
| HSV | hsv(193, 59%, 30%) | — | |
| HWB | hwb(193 12% 70%) | color: hwb(193 12% 70%) | |
| OKLCH | oklch(0.3574 0.0439 218.74) | color: oklch(0.3574 0.0439 218.74) | |
| Lab | lab(25.89 -9.33 -9.92) | color: lab(25.89 -9.33 -9.92) | |
| LCH | lch(25.89 13.62 226.76) | color: lch(25.89 13.62 226.76) |
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)
#2E2E4A — rgb(46, 46, 74)
Deuteranopia (Green-blind)
#2C2A49 — rgb(44, 42, 73)
Tritanopia (Blue-blind)
#214847 — rgb(33, 72, 71)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(193, 42%, 21%);
text
color: hsl(193, 42%, 21%);
border
border: 2px solid hsl(193, 42%, 21%);
gradient light
background: linear-gradient(to right, hsl(193, 42%, 41%), hsl(193, 42%, 21%));
gradient dark
background: linear-gradient(to right, hsl(193, 42%, 21%), hsl(193, 42%, 1%))
hex
background-color: #1F424C;
tailwind
bg-[hsl(193,42%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(193, 42%, 21%, 0.4);
css variable
--color-primary: hsl(193, 42%, 21%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(193, 42%, 21%)?
HEX: #1F424C | RGB: rgb(31, 66, 76) | CMYK: 59%, 13%, 0%, 70% | HSV: 193°, 59%, 30%. Copy any format from the conversion table above.
What colors go well with #1F424C?
The complementary color is HSL(13, 42%, 21%). For a triadic harmony, use hues 193°, 313°, and 73°. For analogous combinations, try hues 163° and 223°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(193, 42%, 21%) in CSS?
As HSL: color: hsl(193, 42%, 21%); — As HEX: color: #1F424C; — As RGB: color: rgb(31, 66, 76); — Tailwind CSS: bg-[hsl(193,42%,21%)] — CSS variable: --color-primary: hsl(193, 42%, 21%);