HSL(228, 40%, 23%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(228,40%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(228, 40%, 23%) | color: hsl(228, 40%, 23%) | |
| HEX | #232D52 | color: #232D52 | |
| RGB | rgb(35, 45, 82) | color: rgb(35, 45, 82) | |
| CMYK | cmyk(57%, 45%, 0%, 68%) | — | |
| HSV | hsv(227, 57%, 32%) | — | |
| HWB | hwb(227 14% 68%) | color: hwb(227 14% 68%) | |
| OKLCH | oklch(0.3081 0.068 270.59) | color: oklch(0.3081 0.068 270.59) | |
| Lab | lab(19.4 8.07 -23.98) | color: lab(19.4 8.07 -23.98) | |
| LCH | lch(19.4 25.3 288.6) | color: lch(19.4 25.3 288.6) |
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)
#272749 — rgb(39, 39, 73)
Deuteranopia (Green-blind)
#272647 — rgb(39, 38, 71)
Tritanopia (Blue-blind)
#244240 — rgb(36, 66, 64)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(228, 40%, 23%);
text
color: hsl(228, 40%, 23%);
border
border: 2px solid hsl(228, 40%, 23%);
gradient light
background: linear-gradient(to right, hsl(228, 40%, 43%), hsl(228, 40%, 23%));
gradient dark
background: linear-gradient(to right, hsl(228, 40%, 23%), hsl(228, 40%, 3%))
hex
background-color: #232D52;
tailwind
bg-[hsl(228,40%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(228, 40%, 23%, 0.4);
css variable
--color-primary: hsl(228, 40%, 23%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(228, 40%, 23%)?
HEX: #232D52 | RGB: rgb(35, 45, 82) | CMYK: 57%, 45%, 0%, 68% | HSV: 227°, 57%, 32%. Copy any format from the conversion table above.
What colors go well with #232D52?
The complementary color is HSL(48, 40%, 23%). For a triadic harmony, use hues 228°, 348°, and 108°. For analogous combinations, try hues 198° and 258°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(228, 40%, 23%) in CSS?
As HSL: color: hsl(228, 40%, 23%); — As HEX: color: #232D52; — As RGB: color: rgb(35, 45, 82); — Tailwind CSS: bg-[hsl(228,40%,23%)] — CSS variable: --color-primary: hsl(228, 40%, 23%);