HSL(274, 99%, 22%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(274,99%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(274, 99%, 22%) | color: hsl(274, 99%, 22%) | |
| HEX | #400170 | color: #400170 | |
| RGB | rgb(64, 1, 112) | color: rgb(64, 1, 112) | |
| CMYK | cmyk(43%, 99%, 0%, 56%) | — | |
| HSV | hsv(274, 99%, 44%) | — | |
| HWB | hwb(274 0% 56%) | color: hwb(274 0% 56%) | |
| OKLCH | oklch(0.3055 0.1604 301.67) | color: oklch(0.3055 0.1604 301.67) | |
| Lab | lab(16.9 46.15 -47.71) | color: lab(16.9 46.15 -47.71) | |
| LCH | lch(16.9 66.38 314.05) | color: lch(16.9 66.38 314.05) |
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)
#252455 — rgb(37, 36, 85)
Deuteranopia (Green-blind)
#282D4F — rgb(40, 45, 79)
Tritanopia (Blue-blind)
#3D403B — rgb(61, 64, 59)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(274, 99%, 22%);
text
color: hsl(274, 99%, 22%);
border
border: 2px solid hsl(274, 99%, 22%);
gradient light
background: linear-gradient(to right, hsl(274, 99%, 42%), hsl(274, 99%, 22%));
gradient dark
background: linear-gradient(to right, hsl(274, 99%, 22%), hsl(274, 99%, 2%))
hex
background-color: #400170;
tailwind
bg-[hsl(274,99%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(274, 99%, 22%, 0.4);
css variable
--color-primary: hsl(274, 99%, 22%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(274, 99%, 22%)?
HEX: #400170 | RGB: rgb(64, 1, 112) | CMYK: 43%, 99%, 0%, 56% | HSV: 274°, 99%, 44%. Copy any format from the conversion table above.
What colors go well with #400170?
The complementary color is HSL(94, 99%, 22%). For a triadic harmony, use hues 274°, 34°, and 154°. For analogous combinations, try hues 244° and 304°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(274, 99%, 22%) in CSS?
As HSL: color: hsl(274, 99%, 22%); — As HEX: color: #400170; — As RGB: color: rgb(64, 1, 112); — Tailwind CSS: bg-[hsl(274,99%,22%)] — CSS variable: --color-primary: hsl(274, 99%, 22%);