HSL(220, 100%, 24%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(220,100%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(220, 100%, 24%) | color: hsl(220, 100%, 24%) | |
| HEX | #00297A | color: #00297A | |
| RGB | rgb(0, 41, 122) | color: rgb(0, 41, 122) | |
| CMYK | cmyk(100%, 66%, 0%, 52%) | — | |
| HSV | hsv(220, 100%, 48%) | — | |
| HWB | hwb(220 0% 52%) | color: hwb(220 0% 52%) | |
| OKLCH | oklch(0.3189 0.1443 261.7) | color: oklch(0.3189 0.1443 261.7) | |
| Lab | lab(20.01 23.03 -49.21) | color: lab(20.01 23.03 -49.21) | |
| LCH | lch(20.01 54.33 295.08) | color: lch(20.01 54.33 295.08) |
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)
#121266 — rgb(18, 18, 102)
Deuteranopia (Green-blind)
#0F0C62 — rgb(15, 12, 98)
Tritanopia (Blue-blind)
#025754 — rgb(2, 87, 84)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(220, 100%, 24%);
text
color: hsl(220, 100%, 24%);
border
border: 2px solid hsl(220, 100%, 24%);
gradient light
background: linear-gradient(to right, hsl(220, 100%, 44%), hsl(220, 100%, 24%));
gradient dark
background: linear-gradient(to right, hsl(220, 100%, 24%), hsl(220, 100%, 4%))
hex
background-color: #00297A;
tailwind
bg-[hsl(220,100%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(220, 100%, 24%, 0.4);
css variable
--color-primary: hsl(220, 100%, 24%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(220, 100%, 24%)?
HEX: #00297A | RGB: rgb(0, 41, 122) | CMYK: 100%, 66%, 0%, 52% | HSV: 220°, 100%, 48%. Copy any format from the conversion table above.
What colors go well with #00297A?
The complementary color is HSL(40, 100%, 24%). For a triadic harmony, use hues 220°, 340°, and 100°. For analogous combinations, try hues 190° and 250°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(220, 100%, 24%) in CSS?
As HSL: color: hsl(220, 100%, 24%); — As HEX: color: #00297A; — As RGB: color: rgb(0, 41, 122); — Tailwind CSS: bg-[hsl(220,100%,24%)] — CSS variable: --color-primary: hsl(220, 100%, 24%);