Skip to content

#2b2fdb

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

RGB
43, 47, 219
HSL
239°, 71%, 51%
CMYK
80, 79, 0, 14
Luminance
0.0766

At a glance

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

Hex
#2b2fdb
Hue
239°
blue
Saturation
71%
vivid
Lightness
51%
balanced
Brightness
86%
HSV value
Perceived
34%
weighted brightness
Luminance
0.0766
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
8.29:1
Closest name
Blue
ΔE2000 5.1
Where it sits
Hue239° of 360°
Saturation71%
Lightness51%
Temperature
Warm ← → Cool84% 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#2b2fdb
RGBrgb(43, 47, 219)
HSLhsl(239, 71%, 51%)
CMYKcmyk(80%, 79%, 0%, 14%)
LABlab(33.3 56.6 -85.8)
LCHlch(33.3 102.8 303.4)
OKLCHoklch(0.449 0.248 269.8)
Decimal2830299
Display P3color(display-p3 0.169 0.184 0.859)

Copy-ready code

/* CSS */
color: #2b2fdb;
background-color: #2b2fdb;
/* Tailwind (arbitrary) */
class="text-[#2b2fdb] bg-[#2b2fdb]"
/* SCSS */
$brand: #2b2fdb;
/* SwiftUI */
Color(red: 0.169, green: 0.184, blue: 0.859)
/* Android */
Color.parseColor("#2b2fdb")
/* Flutter */
Color(0xFF2B2FDB)
/* Python / OpenCV (BGR) */
(219, 47, 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 #2b2fdb · 8.29:1
Use #ffffffAAA at every size.
Aa
White text · 8.29:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.53:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2b2fdb as text scores 8.29:1 on white and 2.53:1 on black.

Accessibility — WCAG contrast

Aa
#2b2fdb on white: 8.29:1
AA ✓ pass · AA-large · AAA
Aa
#2b2fdb on black: 2.53:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0057E0
deuteranopia · #0045D8
tritanopia · #006585

Color scale — 50 to 950

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

#F3F3FC
#E7E8F8
#C9CAF3
#9FA1EF
#6F72E7
#3F43DE
#2b2fdb
#1E21AE
#181A8C
#151765
#0D0E3F
Base = 600Lightest = 50 · #F3F3FCDarkest = 950 · #0D0E3F
:root {
  --brand-50: #F3F3FC;
  --brand-100: #E7E8F8;
  --brand-200: #C9CAF3;
  --brand-300: #9FA1EF;
  --brand-400: #6F72E7;
  --brand-500: #3F43DE;
  --brand-600: #2b2fdb;
  --brand-700: #1E21AE;
  --brand-800: #181A8C;
  --brand-900: #151765;
  --brand-950: #0D0E3F;
  --brand: #2b2fdb;
  --brand-ink: #ffffff;
}

Colors that work with #2b2fdb

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#F4F4FA
Tinted page background
Border#C0C1ED
Hairlines and dividers
Muted text#4B4C9B
Captions on the surface
Accent#B38819
Second voice, not a rival
Dark variant#12156D
Hover, pressed, headers
Light variant#E9EAFB
Selected rows, tints
Dark surface#141424
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 #2b2fdb

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
  • Text on black or near-black surfaces
  • 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#DBD72B
Analogous left#2B87DB
Analogous right#7F2BDB
Split-complement 1#DB7F2B
Split-complement 2#87DB2B
Triadic 1#DB2B2F
Triadic 2#2FDB2B
Tetradic#DB2B87

RGB percentages

Red16.9%
Green18.4%
Blue85.9%

CMYK percentages

Cyan80.4%
Magenta78.5%
Yellow0.0%
Key (black)14.1%

Color previews

#2b2fdb text on a black background

contrast 2.53:1

Card sample

#2b2fdb text on a white background

contrast 8.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(43, 47, 219, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(43, 47, 219, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2b2fdb;
background: linear-gradient(135deg, #2b2fdb, #9C2BDB);

Monochromatic scale

Palettes built from #2b2fdb

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.

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

#2b2fdb, answered

What color is #2b2fdb?

#2b2fdb is a balanced vivid blue, closest to Blue (ΔE2000 5.1). It sits at 239° on the hue wheel with 71% saturation and 51% lightness, which reads as cool.

What is the RGB value of #2b2fdb?

rgb(43, 47, 219) — 43 red, 47 green and 219 blue out of 255, or 16.9% / 18.4% / 85.9% by channel.

Is #2b2fdb a light or a dark color?

It is a dark color. Relative luminance is 0.0766 and perceived brightness is 34%, so white text on it reaches 8.29:1.

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

White. It scores 8.29:1 against #2b2fdb, versus 2.53:1 for black — AAA at any size.

What is the complementary color of #2b2fdb?

#DBD72B sits directly opposite on the wheel. Softer options are the split-complements #DB7F2B and #87DB2B, which give the same contrast with far less vibration.

What colors go well with #2b2fdb?

For interface work: #F4F4FA as the surface, #C0C1ED for borders, #4B4C9B for secondary text, #B38819 as an accent and #12156D for hover and pressed states. For a palette, the analogous pair #2B87DB and #7F2BDB stays calm, while #DBD72B is the loudest partner.

What is #2b2fdb in CMYK for printing?

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

Is #2b2fdb warm or cool?

Cool — it scores 84 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #672BDB; nudged cooler, #2957DE.

Work with #2b2fdb in the Color Lab