HSL(201, 31%, 23%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(201,31%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(201, 31%, 23%) | color: hsl(201, 31%, 23%) | |
| HEX | #28404D | color: #28404D | |
| RGB | rgb(40, 64, 77) | color: rgb(40, 64, 77) | |
| CMYK | cmyk(48%, 17%, 0%, 70%) | — | |
| HSV | hsv(201, 48%, 30%) | — | |
| HWB | hwb(201 16% 70%) | color: hwb(201 16% 70%) | |
| OKLCH | oklch(0.3575 0.0374 232.93) | color: oklch(0.3575 0.0374 232.93) | |
| Lab | lab(25.72 -5.24 -10.79) | color: lab(25.72 -5.24 -10.79) | |
| LCH | lch(25.72 12 244.1) | color: lch(25.72 12 244.1) |
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)
#32334A — rgb(50, 51, 74)
Deuteranopia (Green-blind)
#312F49 — rgb(49, 47, 73)
Tritanopia (Blue-blind)
#294747 — rgb(41, 71, 71)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(201, 31%, 23%);
text
color: hsl(201, 31%, 23%);
border
border: 2px solid hsl(201, 31%, 23%);
gradient light
background: linear-gradient(to right, hsl(201, 31%, 43%), hsl(201, 31%, 23%));
gradient dark
background: linear-gradient(to right, hsl(201, 31%, 23%), hsl(201, 31%, 3%))
hex
background-color: #28404D;
tailwind
bg-[hsl(201,31%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(201, 31%, 23%, 0.4);
css variable
--color-primary: hsl(201, 31%, 23%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(201, 31%, 23%)?
HEX: #28404D | RGB: rgb(40, 64, 77) | CMYK: 48%, 17%, 0%, 70% | HSV: 201°, 48%, 30%. Copy any format from the conversion table above.
What colors go well with #28404D?
The complementary color is HSL(21, 31%, 23%). For a triadic harmony, use hues 201°, 321°, and 81°. For analogous combinations, try hues 171° and 231°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(201, 31%, 23%) in CSS?
As HSL: color: hsl(201, 31%, 23%); — As HEX: color: #28404D; — As RGB: color: rgb(40, 64, 77); — Tailwind CSS: bg-[hsl(201,31%,23%)] — CSS variable: --color-primary: hsl(201, 31%, 23%);