HSL(233, 77%, 51%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(233,77%,51%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(233, 77%, 51%) | color: hsl(233, 77%, 51%) | |
| HEX | #2238E2 | color: #2238E2 | |
| RGB | rgb(34, 56, 226) | color: rgb(34, 56, 226) | |
| CMYK | cmyk(85%, 75%, 0%, 11%) | — | |
| HSV | hsv(233, 85%, 89%) | — | |
| HWB | hwb(233 13% 11%) | color: hwb(233 13% 11%) | |
| OKLCH | oklch(0.4648 0.2507 267.29) | color: oklch(0.4648 0.2507 267.29) | |
| Lab | lab(35.32 53.71 -86.39) | color: lab(35.32 53.71 -86.39) | |
| LCH | lch(35.32 101.73 301.87) | color: lch(35.32 101.73 301.87) |
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)
#2C2CB9 — rgb(44, 44, 185)
Deuteranopia (Green-blind)
#2A29AF — rgb(42, 41, 175)
Tritanopia (Blue-blind)
#239891 — rgb(35, 152, 145)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(233, 77%, 51%);
text
color: hsl(233, 77%, 51%);
border
border: 2px solid hsl(233, 77%, 51%);
gradient light
background: linear-gradient(to right, hsl(233, 77%, 71%), hsl(233, 77%, 51%));
gradient dark
background: linear-gradient(to right, hsl(233, 77%, 51%), hsl(233, 77%, 31%))
hex
background-color: #2238E2;
tailwind
bg-[hsl(233,77%,51%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(233, 77%, 51%, 0.4);
css variable
--color-primary: hsl(233, 77%, 51%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(233, 77%, 51%)?
HEX: #2238E2 | RGB: rgb(34, 56, 226) | CMYK: 85%, 75%, 0%, 11% | HSV: 233°, 85%, 89%. Copy any format from the conversion table above.
What colors go well with #2238E2?
The complementary color is HSL(53, 77%, 51%). 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, 77%, 51%) in CSS?
As HSL: color: hsl(233, 77%, 51%); — As HEX: color: #2238E2; — As RGB: color: rgb(34, 56, 226); — Tailwind CSS: bg-[hsl(233,77%,51%)] — CSS variable: --color-primary: hsl(233, 77%, 51%);