#228cd3
a balanced, vivid blue · cool · closest name: Steel Blue
At a glance
Every number on this page in one read: what #228cd3 is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #228cd3 |
| RGB | rgb(34, 140, 211) |
| HSL | hsl(204, 72%, 48%) |
| CMYK | cmyk(84%, 34%, 0%, 17%) |
| LAB | lab(55.9 -3.8 -44.5) |
| LCH | lch(55.9 44.7 265.1) |
| OKLCH | oklch(0.617 0.141 244.2) |
| Decimal | 2264275 |
| Display P3 | color(display-p3 0.133 0.549 0.827) |
Copy-ready code
/* CSS */
color: #228cd3;
background-color: #228cd3;
/* Tailwind (arbitrary) */
class="text-[#228cd3] bg-[#228cd3]"
/* SCSS */
$brand: #228cd3;
/* SwiftUI */
Color(red: 0.133, green: 0.549, blue: 0.827)
/* Android */
Color.parseColor("#228cd3")
/* Flutter */
Color(0xFF228CD3)
/* Python / OpenCV (BGR) */
(211, 140, 34)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #228cd3 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F3F8FC;
--brand-100: #E7F1F8;
--brand-200: #C9E2F3;
--brand-300: #9ECFEF;
--brand-400: #6EB7E8;
--brand-500: #3E9FE0;
--brand-600: #228cd3;
--brand-700: #1C74B0;
--brand-800: #175D8D;
--brand-900: #154566;
--brand-950: #0D2B40;
--brand: #228cd3;
--brand-ink: #000000;
}Colors that work with #228cd3
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #228cd3
Derived from its contrast, chroma and lightness — not from taste.
- ✓Headings from 24px up on white
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠Small text on white — under 4.5:1
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Pairing with a same-lightness hue — edges vibrate
Similar colors
One move away from this hex in each direction. Every swatch is its own page.
Color relationships
The wheel positions with their names attached, so you can grab the one you actually need.
| Complementary | #D36922 | Directly opposite — maximum tension | |
| Analogous left | #22D3C1 | Neighbour, quieter | |
| Analogous right | #2233D3 | Neighbour, quieter | |
| Split-complement 1 | #D32233 | Contrast without the clash | |
| Split-complement 2 | #D3C122 | Contrast without the clash | |
| Triadic 1 | #D3228C | Even thirds — balanced and loud | |
| Triadic 2 | #8CD322 | Even thirds — balanced and loud | |
| Tetradic | #C122D3 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#228cd3 text on a black background
contrast 5.76:1
#228cd3 text on a white background
contrast 3.65:1
CSS3 live lab
The quick brown fox
color: #228cd3;
background-color: #228cd3;
Glowing headline
text-shadow: 2px 2px 8px #228cd3;
Soft neon halo
text-shadow: 0 0 14px rgba(34, 140, 211, 0.45);
box-shadow: 0 12px 32px -8px rgba(34, 140, 211, 0.45);
border: 3px solid #228cd3; background: linear-gradient(135deg, #228cd3, #2E22D3);
Monochromatic scale
Palettes built from #228cd3
Shades — darker
Tints — lighter
Color harmonies
Nearest named colors
Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.
Closest color with a full write-up: Steel Blue (#4682b4) — ΔE2000 5 away, with its history, psychology and brand usage.
#228cd3 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#228cd3, answered
What color is #228cd3?
#228cd3 is a balanced vivid blue, closest to Steel Blue (ΔE2000 5). It sits at 204° on the hue wheel with 72% saturation and 48% lightness, which reads as cool.
What is the RGB value of #228cd3?
rgb(34, 140, 211) — 34 red, 140 green and 211 blue out of 255, or 13.3% / 54.9% / 82.7% by channel.
Is #228cd3 a light or a dark color?
It is a mid-tone. Relative luminance is 0.2380 and perceived brightness is 51%, so black text on it reaches 5.76:1.
Should I use black or white text on #228cd3?
Black. It scores 5.76:1 against #228cd3, versus 3.65:1 for white — AA at any size.
What is the complementary color of #228cd3?
#D36922 sits directly opposite on the wheel. Softer options are the split-complements #D32233 and #D3C122, which give the same contrast with far less vibration.
What colors go well with #228cd3?
For interface work: #F4F8FA as the surface, #C0DBED for borders, #4B7B9B for secondary text, #D8391D as an accent and #12496E for hover and pressed states. For a palette, the analogous pair #22D3C1 and #2233D3 stays calm, while #D36922 is the loudest partner.
What is #228cd3 in CMYK for printing?
cmyk(84%, 34%, 0%, 17%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #228cd3 warm or cool?
Cool — it scores 98 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #22CDD3; nudged cooler, #1C73BF.