HSL(226, 100%, 20%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(226,100%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(226, 100%, 20%) | color: hsl(226, 100%, 20%) | |
| HEX | #001866 | color: #001866 | |
| RGB | rgb(0, 24, 102) | color: rgb(0, 24, 102) | |
| CMYK | cmyk(100%, 76%, 0%, 60%) | — | |
| HSV | hsv(226, 100%, 40%) | — | |
| HWB | hwb(226 0% 60%) | color: hwb(226 0% 60%) | |
| OKLCH | oklch(0.2632 0.1382 263.37) | color: oklch(0.2632 0.1382 263.37) | |
| Lab | lab(13.3 26.7 -47.28) | color: lab(13.3 26.7 -47.28) | |
| LCH | lch(13.3 54.3 299.45) | color: lch(13.3 54.3 299.45) |
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)
#0A0B53 — rgb(10, 11, 83)
Deuteranopia (Green-blind)
#09074F — rgb(9, 7, 79)
Tritanopia (Blue-blind)
#014441 — rgb(1, 68, 65)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(226, 100%, 20%);
text
color: hsl(226, 100%, 20%);
border
border: 2px solid hsl(226, 100%, 20%);
gradient light
background: linear-gradient(to right, hsl(226, 100%, 40%), hsl(226, 100%, 20%));
gradient dark
background: linear-gradient(to right, hsl(226, 100%, 20%), hsl(226, 100%, 0%))
hex
background-color: #001866;
tailwind
bg-[hsl(226,100%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(226, 100%, 20%, 0.4);
css variable
--color-primary: hsl(226, 100%, 20%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(226, 100%, 20%)?
HEX: #001866 | RGB: rgb(0, 24, 102) | CMYK: 100%, 76%, 0%, 60% | HSV: 226°, 100%, 40%. Copy any format from the conversion table above.
What colors go well with #001866?
The complementary color is HSL(46, 100%, 20%). For a triadic harmony, use hues 226°, 346°, and 106°. For analogous combinations, try hues 196° and 256°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(226, 100%, 20%) in CSS?
As HSL: color: hsl(226, 100%, 20%); — As HEX: color: #001866; — As RGB: color: rgb(0, 24, 102); — Tailwind CSS: bg-[hsl(226,100%,20%)] — CSS variable: --color-primary: hsl(226, 100%, 20%);