HSL(230, 51%, 21%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(230,51%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(230, 51%, 21%) | color: hsl(230, 51%, 21%) | |
| HEX | #1A2351 | color: #1A2351 | |
| RGB | rgb(26, 35, 81) | color: rgb(26, 35, 81) | |
| CMYK | cmyk(68%, 57%, 0%, 68%) | — | |
| HSV | hsv(230, 68%, 32%) | — | |
| HWB | hwb(230 10% 68%) | color: hwb(230 10% 68%) | |
| OKLCH | oklch(0.277 0.0845 271.5) | color: oklch(0.277 0.0845 271.5) | |
| Lab | lab(15.57 12.86 -29.48) | color: lab(15.57 12.86 -29.48) | |
| LCH | lch(15.57 32.16 293.57) | color: lch(15.57 32.16 293.57) |
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)
#1E1E46 — rgb(30, 30, 70)
Deuteranopia (Green-blind)
#1D1D43 — rgb(29, 29, 67)
Tritanopia (Blue-blind)
#1A3D3B — rgb(26, 61, 59)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(230, 51%, 21%);
text
color: hsl(230, 51%, 21%);
border
border: 2px solid hsl(230, 51%, 21%);
gradient light
background: linear-gradient(to right, hsl(230, 51%, 41%), hsl(230, 51%, 21%));
gradient dark
background: linear-gradient(to right, hsl(230, 51%, 21%), hsl(230, 51%, 1%))
hex
background-color: #1A2351;
tailwind
bg-[hsl(230,51%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(230, 51%, 21%, 0.4);
css variable
--color-primary: hsl(230, 51%, 21%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(230, 51%, 21%)?
HEX: #1A2351 | RGB: rgb(26, 35, 81) | CMYK: 68%, 57%, 0%, 68% | HSV: 230°, 68%, 32%. Copy any format from the conversion table above.
What colors go well with #1A2351?
The complementary color is HSL(50, 51%, 21%). For a triadic harmony, use hues 230°, 350°, and 110°. For analogous combinations, try hues 200° and 260°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(230, 51%, 21%) in CSS?
As HSL: color: hsl(230, 51%, 21%); — As HEX: color: #1A2351; — As RGB: color: rgb(26, 35, 81); — Tailwind CSS: bg-[hsl(230,51%,21%)] — CSS variable: --color-primary: hsl(230, 51%, 21%);