HSL(235, 70%, 16%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(235,70%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(235, 70%, 16%) | color: hsl(235, 70%, 16%) | |
| HEX | #0C1145 | color: #0C1145 | |
| RGB | rgb(12, 17, 69) | color: rgb(12, 17, 69) | |
| CMYK | cmyk(83%, 75%, 0%, 73%) | — | |
| HSV | hsv(235, 83%, 27%) | — | |
| HWB | hwb(235 5% 73%) | color: hwb(235 5% 73%) | |
| OKLCH | oklch(0.2164 0.0961 271.22) | color: oklch(0.2164 0.0961 271.22) | |
| Lab | lab(8.21 18.98 -33.21) | color: lab(8.21 18.98 -33.21) | |
| LCH | lch(8.21 38.25 299.75) | color: lch(8.21 38.25 299.75) |
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)
#0E0E38 — rgb(14, 14, 56)
Deuteranopia (Green-blind)
#0E0E35 — rgb(14, 14, 53)
Tritanopia (Blue-blind)
#0C2E2C — rgb(12, 46, 44)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(235, 70%, 16%);
text
color: hsl(235, 70%, 16%);
border
border: 2px solid hsl(235, 70%, 16%);
gradient light
background: linear-gradient(to right, hsl(235, 70%, 36%), hsl(235, 70%, 16%));
gradient dark
background: linear-gradient(to right, hsl(235, 70%, 16%), hsl(235, 70%, 0%))
hex
background-color: #0C1145;
tailwind
bg-[hsl(235,70%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(235, 70%, 16%, 0.4);
css variable
--color-primary: hsl(235, 70%, 16%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(235, 70%, 16%)?
HEX: #0C1145 | RGB: rgb(12, 17, 69) | CMYK: 83%, 75%, 0%, 73% | HSV: 235°, 83%, 27%. Copy any format from the conversion table above.
What colors go well with #0C1145?
The complementary color is HSL(55, 70%, 16%). For a triadic harmony, use hues 235°, 355°, and 115°. For analogous combinations, try hues 205° and 265°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(235, 70%, 16%) in CSS?
As HSL: color: hsl(235, 70%, 16%); — As HEX: color: #0C1145; — As RGB: color: rgb(12, 17, 69); — Tailwind CSS: bg-[hsl(235,70%,16%)] — CSS variable: --color-primary: hsl(235, 70%, 16%);