Skip to content

#228cd3

a balanced, vivid blue · cool · closest name: Steel Blue

RGB
34, 140, 211
HSL
204°, 72%, 48%
CMYK
84, 34, 0, 17
Luminance
0.2380

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.

Hex
#228cd3
Hue
204°
blue
Saturation
72%
vivid
Lightness
48%
balanced
Brightness
83%
HSV value
Perceived
51%
weighted brightness
Luminance
0.2380
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
5.76:1
Closest name
Steel Blue
ΔE2000 5
Where it sits
Hue204° of 360°
Saturation72%
Lightness48%
Temperature
Warm ← → Cool98% cool

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
RGBrgb(34, 140, 211)
HSLhsl(204, 72%, 48%)
CMYKcmyk(84%, 34%, 0%, 17%)
LABlab(55.9 -3.8 -44.5)
LCHlch(55.9 44.7 265.1)
OKLCHoklch(0.617 0.141 244.2)
Decimal2264275
Display P3color(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.

Readable at a glance#000000 on #228cd3 · 5.76:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.65:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.76:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #228cd3 as text scores 3.65:1 on white and 5.76:1 on black.

Accessibility — WCAG contrast

Aa
#228cd3 on white: 3.65:1
AA ✗ fail · AA-large · AAA
Aa
#228cd3 on black: 5.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6A8FD6
deuteranopia · #517FD2
tritanopia · #009DA6

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.

#F3F8FC
#E7F1F8
#C9E2F3
#9ECFEF
#6EB7E8
#3E9FE0
#228cd3
#1C74B0
#175D8D
#154566
#0D2B40
Base = 600Lightest = 50 · #F3F8FCDarkest = 950 · #0D2B40
: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.

Text on it#000000
Black wins here
Surface#F4F8FA
Tinted page background
Border#C0DBED
Hairlines and dividers
Muted text#4B7B9B
Captions on the surface
Accent#D8391D
Second voice, not a rival
Dark variant#12496E
Hover, pressed, headers
Light variant#E9F4FB
Selected rows, tints
Dark surface#141E24
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #228cd3

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • 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
Use with care
  • 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
Analogous left#22D3C1
Analogous right#2233D3
Split-complement 1#D32233
Split-complement 2#D3C122
Triadic 1#D3228C
Triadic 2#8CD322
Tetradic#C122D3

RGB percentages

Red13.3%
Green54.9%
Blue82.7%

CMYK percentages

Cyan83.9%
Magenta33.6%
Yellow0.0%
Key (black)17.3%

Color previews

#228cd3 text on a black background

contrast 5.76:1

Card sample

#228cd3 text on a white background

contrast 3.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #228cd3;
Background color
Panel with #228cd3 background
background-color: #228cd3;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #228cd3;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(34, 140, 211, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(34, 140, 211, 0.45);
Border & gradient
Gradient panel
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.

#228cd3 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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.

Work with #228cd3 in the Color Lab