HSL(202, 57%, 31%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(202,57%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(202, 57%, 31%) | color: hsl(202, 57%, 31%) | |
| HEX | #225B7C | color: #225B7C | |
| RGB | rgb(34, 91, 124) | color: rgb(34, 91, 124) | |
| CMYK | cmyk(73%, 27%, 0%, 51%) | — | |
| HSV | hsv(202, 73%, 49%) | — | |
| HWB | hwb(202 13% 51%) | color: hwb(202 13% 51%) | |
| OKLCH | oklch(0.4495 0.0798 237.8) | color: oklch(0.4495 0.0798 237.8) | |
| Lab | lab(36.51 -6.88 -23.96) | color: lab(36.51 -6.88 -23.96) | |
| LCH | lch(36.51 24.93 253.98) | color: lch(36.51 24.93 253.98) |
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)
#3B3B74 — rgb(59, 59, 116)
Deuteranopia (Green-blind)
#373372 — rgb(55, 51, 114)
Tritanopia (Blue-blind)
#256E6C — rgb(37, 110, 108)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(202, 57%, 31%);
text
color: hsl(202, 57%, 31%);
border
border: 2px solid hsl(202, 57%, 31%);
gradient light
background: linear-gradient(to right, hsl(202, 57%, 51%), hsl(202, 57%, 31%));
gradient dark
background: linear-gradient(to right, hsl(202, 57%, 31%), hsl(202, 57%, 11%))
hex
background-color: #225B7C;
tailwind
bg-[hsl(202,57%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(202, 57%, 31%, 0.4);
css variable
--color-primary: hsl(202, 57%, 31%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(202, 57%, 31%)?
HEX: #225B7C | RGB: rgb(34, 91, 124) | CMYK: 73%, 27%, 0%, 51% | HSV: 202°, 73%, 49%. Copy any format from the conversion table above.
What colors go well with #225B7C?
The complementary color is HSL(22, 57%, 31%). For a triadic harmony, use hues 202°, 322°, and 82°. For analogous combinations, try hues 172° and 232°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(202, 57%, 31%) in CSS?
As HSL: color: hsl(202, 57%, 31%); — As HEX: color: #225B7C; — As RGB: color: rgb(34, 91, 124); — Tailwind CSS: bg-[hsl(202,57%,31%)] — CSS variable: --color-primary: hsl(202, 57%, 31%);