HSL(226, 70%, 24%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(226,70%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(226, 70%, 24%) | color: hsl(226, 70%, 24%) | |
| HEX | #122668 | color: #122668 | |
| RGB | rgb(18, 38, 104) | color: rgb(18, 38, 104) | |
| CMYK | cmyk(83%, 63%, 0%, 59%) | — | |
| HSV | hsv(226, 83%, 41%) | — | |
| HWB | hwb(226 7% 59%) | color: hwb(226 7% 59%) | |
| OKLCH | oklch(0.3001 0.1184 266.24) | color: oklch(0.3001 0.1184 266.24) | |
| Lab | lab(17.98 18.92 -40.89) | color: lab(17.98 18.92 -40.89) | |
| LCH | lch(17.98 45.06 294.83) | color: lch(17.98 45.06 294.83) |
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)
#1B1B58 — rgb(27, 27, 88)
Deuteranopia (Green-blind)
#1A1854 — rgb(26, 24, 84)
Tritanopia (Blue-blind)
#134B49 — rgb(19, 75, 73)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(226, 70%, 24%);
text
color: hsl(226, 70%, 24%);
border
border: 2px solid hsl(226, 70%, 24%);
gradient light
background: linear-gradient(to right, hsl(226, 70%, 44%), hsl(226, 70%, 24%));
gradient dark
background: linear-gradient(to right, hsl(226, 70%, 24%), hsl(226, 70%, 4%))
hex
background-color: #122668;
tailwind
bg-[hsl(226,70%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(226, 70%, 24%, 0.4);
css variable
--color-primary: hsl(226, 70%, 24%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(226, 70%, 24%)?
HEX: #122668 | RGB: rgb(18, 38, 104) | CMYK: 83%, 63%, 0%, 59% | HSV: 226°, 83%, 41%. Copy any format from the conversion table above.
What colors go well with #122668?
The complementary color is HSL(46, 70%, 24%). 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, 70%, 24%) in CSS?
As HSL: color: hsl(226, 70%, 24%); — As HEX: color: #122668; — As RGB: color: rgb(18, 38, 104); — Tailwind CSS: bg-[hsl(226,70%,24%)] — CSS variable: --color-primary: hsl(226, 70%, 24%);