HSL(233, 75%, 21%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(233,75%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(233, 75%, 21%) | color: hsl(233, 75%, 21%) | |
| HEX | #0D175E | color: #0D175E | |
| RGB | rgb(13, 23, 94) | color: rgb(13, 23, 94) | |
| CMYK | cmyk(86%, 76%, 0%, 63%) | — | |
| HSV | hsv(233, 86%, 37%) | — | |
| HWB | hwb(233 5% 63%) | color: hwb(233 5% 63%) | |
| OKLCH | oklch(0.2572 0.1247 268.57) | color: oklch(0.2572 0.1247 268.57) | |
| Lab | lab(12.65 25.06 -43.04) | color: lab(12.65 25.06 -43.04) | |
| LCH | lch(12.65 49.8 300.21) | color: lch(12.65 49.8 300.21) |
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)
#11114D — rgb(17, 17, 77)
Deuteranopia (Green-blind)
#111049 — rgb(17, 16, 73)
Tritanopia (Blue-blind)
#0E3F3C — rgb(14, 63, 60)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(233, 75%, 21%);
text
color: hsl(233, 75%, 21%);
border
border: 2px solid hsl(233, 75%, 21%);
gradient light
background: linear-gradient(to right, hsl(233, 75%, 41%), hsl(233, 75%, 21%));
gradient dark
background: linear-gradient(to right, hsl(233, 75%, 21%), hsl(233, 75%, 1%))
hex
background-color: #0D175E;
tailwind
bg-[hsl(233,75%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(233, 75%, 21%, 0.4);
css variable
--color-primary: hsl(233, 75%, 21%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(233, 75%, 21%)?
HEX: #0D175E | RGB: rgb(13, 23, 94) | CMYK: 86%, 76%, 0%, 63% | HSV: 233°, 86%, 37%. Copy any format from the conversion table above.
What colors go well with #0D175E?
The complementary color is HSL(53, 75%, 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, 75%, 21%) in CSS?
As HSL: color: hsl(233, 75%, 21%); — As HEX: color: #0D175E; — As RGB: color: rgb(13, 23, 94); — Tailwind CSS: bg-[hsl(233,75%,21%)] — CSS variable: --color-primary: hsl(233, 75%, 21%);