Skip to content

#2b5ccc

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

RGB
43, 92, 204
HSL
222°, 65%, 48%
CMYK
79, 55, 0, 20
Luminance
0.1253

At a glance

Every number on this page in one read: what #2b5ccc is made of, how bright it looks, and which way it leans.

Hex
#2b5ccc
Hue
222°
blue
Saturation
65%
vivid
Lightness
48%
balanced
Brightness
80%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1253
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
5.99:1
Closest name
Royal Blue
ΔE2000 5.5
Where it sits
Hue222° of 360°
Saturation65%
Lightness48%
Temperature
Warm ← → Cool93% 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#2b5ccc
RGBrgb(43, 92, 204)
HSLhsl(222, 65%, 48%)
CMYKcmyk(79%, 55%, 0%, 20%)
LABlab(42.0 24.3 -62.7)
LCHlch(42.0 67.3 291.2)
OKLCHoklch(0.509 0.182 263.5)
Decimal2841804
Display P3color(display-p3 0.169 0.361 0.800)

Copy-ready code

/* CSS */
color: #2b5ccc;
background-color: #2b5ccc;
/* Tailwind (arbitrary) */
class="text-[#2b5ccc] bg-[#2b5ccc]"
/* SCSS */
$brand: #2b5ccc;
/* SwiftUI */
Color(red: 0.169, green: 0.361, blue: 0.800)
/* Android */
Color.parseColor("#2b5ccc")
/* Flutter */
Color(0xFF2B5CCC)
/* Python / OpenCV (BGR) */
(204, 92, 43)

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#ffffff on #2b5ccc · 5.99:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.99:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.51:1
AA fail · AA large pass · AAA fail
Reading the other direction: #2b5ccc as text scores 5.99:1 on white and 3.51:1 on black.

Accessibility — WCAG contrast

Aa
#2b5ccc on white: 5.99:1
AA ✓ pass · AA-large · AAA
Aa
#2b5ccc on black: 3.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006BD0
deuteranopia · #005CCA
tritanopia · #00788B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2b5ccc 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.

#F3F6FB
#E8EDF7
#CBD6F1
#A2B9EB
#7495E2
#4672D8
#2b5ccc
#234CA9
#1C3D87
#182F62
#0F1D3D
Base = 600Lightest = 50 · #F3F6FBDarkest = 950 · #0F1D3D
:root {
  --brand-50: #F3F6FB;
  --brand-100: #E8EDF7;
  --brand-200: #CBD6F1;
  --brand-300: #A2B9EB;
  --brand-400: #7495E2;
  --brand-500: #4672D8;
  --brand-600: #2b5ccc;
  --brand-700: #234CA9;
  --brand-800: #1C3D87;
  --brand-900: #182F62;
  --brand-950: #0F1D3D;
  --brand: #2b5ccc;
  --brand-ink: #ffffff;
}

Colors that work with #2b5ccc

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F4F6FA
Tinted page background
Border#C0CDED
Hairlines and dividers
Muted text#4B639B
Captions on the surface
Accent#D17226
Second voice, not a rival
Dark variant#163069
Hover, pressed, headers
Light variant#EAEFFB
Selected rows, tints
Dark surface#141924
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 #2b5ccc

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#CC9B2B
Analogous left#2BADCC
Analogous right#4A2BCC
Split-complement 1#CC4A2B
Split-complement 2#ADCC2B
Triadic 1#CC2B5C
Triadic 2#5CCC2B
Tetradic#CC2BAD

RGB percentages

Red16.9%
Green36.1%
Blue80.0%

CMYK percentages

Cyan78.9%
Magenta54.9%
Yellow0.0%
Key (black)20.0%

Color previews

#2b5ccc text on a black background

contrast 3.51:1

Card sample

#2b5ccc text on a white background

contrast 5.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2b5ccc;
Background color
Panel with #2b5ccc background
background-color: #2b5ccc;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(43, 92, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(43, 92, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2b5ccc;
background: linear-gradient(135deg, #2b5ccc, #652BCC);

Monochromatic scale

Palettes built from #2b5ccc

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.

#2b5ccc 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.

#2b5ccc, answered

What color is #2b5ccc?

#2b5ccc is a balanced vivid blue, closest to Royal Blue (ΔE2000 5.5). It sits at 222° on the hue wheel with 65% saturation and 48% lightness, which reads as cool.

What is the RGB value of #2b5ccc?

rgb(43, 92, 204) — 43 red, 92 green and 204 blue out of 255, or 16.9% / 36.1% / 80% by channel.

Is #2b5ccc a light or a dark color?

It is a dark color. Relative luminance is 0.1253 and perceived brightness is 40%, so white text on it reaches 5.99:1.

Should I use black or white text on #2b5ccc?

White. It scores 5.99:1 against #2b5ccc, versus 3.51:1 for black — AA at any size.

What is the complementary color of #2b5ccc?

#CC9B2B sits directly opposite on the wheel. Softer options are the split-complements #CC4A2B and #ADCC2B, which give the same contrast with far less vibration.

What colors go well with #2b5ccc?

For interface work: #F4F6FA as the surface, #C0CDED for borders, #4B639B for secondary text, #D17226 as an accent and #163069 for hover and pressed states. For a palette, the analogous pair #2BADCC and #4A2BCC stays calm, while #CC9B2B is the loudest partner.

What is #2b5ccc in CMYK for printing?

cmyk(79%, 55%, 0%, 20%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #2b5ccc warm or cool?

Cool — it scores 93 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #352BCC; nudged cooler, #245FB9.

Work with #2b5ccc in the Color Lab