Skip to content

#2d2bcb

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

RGB
45, 43, 203
HSL
241°, 65%, 48%
CMYK
78, 79, 0, 20
Luminance
0.0660

At a glance

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

Hex
#2d2bcb
Hue
241°
blue
Saturation
65%
vivid
Lightness
48%
balanced
Brightness
80%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0660
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.05:1
Closest name
Medium Blue
ΔE2000 5.6
Where it sits
Hue241° of 360°
Saturation65%
Lightness48%
Temperature
Warm ← → Cool83% 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#2d2bcb
RGBrgb(45, 43, 203)
HSLhsl(241, 65%, 48%)
CMYKcmyk(78%, 79%, 0%, 20%)
LABlab(30.9 53.7 -80.5)
LCHlch(30.9 96.8 303.7)
OKLCHoklch(0.427 0.233 271.3)
Decimal2960331
Display P3color(display-p3 0.176 0.169 0.796)

Copy-ready code

/* CSS */
color: #2d2bcb;
background-color: #2d2bcb;
/* Tailwind (arbitrary) */
class="text-[#2d2bcb] bg-[#2d2bcb]"
/* SCSS */
$brand: #2d2bcb;
/* SwiftUI */
Color(red: 0.176, green: 0.169, blue: 0.796)
/* Android */
Color.parseColor("#2d2bcb")
/* Flutter */
Color(0xFF2D2BCB)
/* Python / OpenCV (BGR) */
(203, 43, 45)

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 #2d2bcb · 9.05:1
Use #ffffffAAA at every size.
Aa
White text · 9.05:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.32:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2d2bcb as text scores 9.05:1 on white and 2.32:1 on black.

Accessibility — WCAG contrast

Aa
#2d2bcb on white: 9.05:1
AA ✓ pass · AA-large · AAA
Aa
#2d2bcb on black: 2.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0051CF
deuteranopia · #0040C8
tritanopia · #005D7B

Color scale — 50 to 950

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

#F4F3FB
#E8E8F7
#CBCBF1
#A3A2EB
#7674E2
#4846D8
#2d2bcb
#2524A8
#1E1D87
#1A1962
#100F3D
Base = 600Lightest = 50 · #F4F3FBDarkest = 950 · #100F3D
:root {
  --brand-50: #F4F3FB;
  --brand-100: #E8E8F7;
  --brand-200: #CBCBF1;
  --brand-300: #A3A2EB;
  --brand-400: #7674E2;
  --brand-500: #4846D8;
  --brand-600: #2d2bcb;
  --brand-700: #2524A8;
  --brand-800: #1E1D87;
  --brand-900: #1A1962;
  --brand-950: #100F3D;
  --brand: #2d2bcb;
  --brand-ink: #ffffff;
}

Colors that work with #2d2bcb

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#C0C0ED
Hairlines and dividers
Muted text#4C4B9B
Captions on the surface
Accent#AC8B20
Second voice, not a rival
Dark variant#171669
Hover, pressed, headers
Light variant#EAEAFB
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 #2d2bcb

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#C9CB2B
Analogous left#2B79CB
Analogous right#7D2BCB
Split-complement 1#CB7D2B
Split-complement 2#79CB2B
Triadic 1#CB2D2B
Triadic 2#2BCB2D
Tetradic#CB2B79

RGB percentages

Red17.6%
Green16.9%
Blue79.6%

CMYK percentages

Cyan77.8%
Magenta78.8%
Yellow0.0%
Key (black)20.4%

Color previews

#2d2bcb text on a black background

contrast 2.32:1

Card sample

#2d2bcb text on a white background

contrast 9.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 43, 203, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 43, 203, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d2bcb;
background: linear-gradient(135deg, #2d2bcb, #982BCB);

Monochromatic scale

Palettes built from #2d2bcb

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.

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

#2d2bcb, answered

What color is #2d2bcb?

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

What is the RGB value of #2d2bcb?

rgb(45, 43, 203) — 45 red, 43 green and 203 blue out of 255, or 17.6% / 16.9% / 79.6% by channel.

Is #2d2bcb a light or a dark color?

It is a dark color. Relative luminance is 0.0660 and perceived brightness is 31%, so white text on it reaches 9.05:1.

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

White. It scores 9.05:1 against #2d2bcb, versus 2.32:1 for black — AAA at any size.

What is the complementary color of #2d2bcb?

#C9CB2B sits directly opposite on the wheel. Softer options are the split-complements #CB7D2B and #79CB2B, which give the same contrast with far less vibration.

What colors go well with #2d2bcb?

For interface work: #F4F4FA as the surface, #C0C0ED for borders, #4C4B9B for secondary text, #AC8B20 as an accent and #171669 for hover and pressed states. For a palette, the analogous pair #2B79CB and #7D2BCB stays calm, while #C9CB2B is the loudest partner.

What is #2d2bcb in CMYK for printing?

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

Is #2d2bcb warm or cool?

Cool — it scores 83 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #682BCB; nudged cooler, #2952CD.

Work with #2d2bcb in the Color Lab