HSL(233, 47%, 21%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(233,47%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(233, 47%, 21%) | color: hsl(233, 47%, 21%) | |
| HEX | #1C224F | color: #1C224F | |
| RGB | rgb(28, 34, 79) | color: rgb(28, 34, 79) | |
| CMYK | cmyk(65%, 57%, 0%, 69%) | — | |
| HSV | hsv(233, 65%, 31%) | — | |
| HWB | hwb(233 11% 69%) | color: hwb(233 11% 69%) | |
| OKLCH | oklch(0.2745 0.0821 273.98) | color: oklch(0.2745 0.0821 273.98) | |
| Lab | lab(15.25 13.23 -28.62) | color: lab(15.25 13.23 -28.62) | |
| LCH | lch(15.25 31.53 294.81) | color: lch(15.25 31.53 294.81) |
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)
#1F1F44 — rgb(31, 31, 68)
Deuteranopia (Green-blind)
#1E1E42 — rgb(30, 30, 66)
Tritanopia (Blue-blind)
#1C3C3A — rgb(28, 60, 58)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(233, 47%, 21%);
text
color: hsl(233, 47%, 21%);
border
border: 2px solid hsl(233, 47%, 21%);
gradient light
background: linear-gradient(to right, hsl(233, 47%, 41%), hsl(233, 47%, 21%));
gradient dark
background: linear-gradient(to right, hsl(233, 47%, 21%), hsl(233, 47%, 1%))
hex
background-color: #1C224F;
tailwind
bg-[hsl(233,47%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(233, 47%, 21%, 0.4);
css variable
--color-primary: hsl(233, 47%, 21%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(233, 47%, 21%)?
HEX: #1C224F | RGB: rgb(28, 34, 79) | CMYK: 65%, 57%, 0%, 69% | HSV: 233°, 65%, 31%. Copy any format from the conversion table above.
What colors go well with #1C224F?
The complementary color is HSL(53, 47%, 21%). For a triadic harmony, use hues 233°, 353°, and 113°. For analogous combinations, try hues 203° and 263°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(233, 47%, 21%) in CSS?
As HSL: color: hsl(233, 47%, 21%); — As HEX: color: #1C224F; — As RGB: color: rgb(28, 34, 79); — Tailwind CSS: bg-[hsl(233,47%,21%)] — CSS variable: --color-primary: hsl(233, 47%, 21%);