Skip to content

#3d2bab

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

RGB
61, 43, 171
HSL
248°, 60%, 42%
CMYK
64, 75, 0, 33
Luminance
0.0566

At a glance

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

Hex
#3d2bab
Hue
248°
blue
Saturation
60%
vivid
Lightness
42%
dark
Brightness
67%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0566
WCAG relative
Temperature
Cool
79/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.85:1
Closest name
Medium Blue
ΔE2000 6.8
Where it sits
Hue248° of 360°
Saturation60%
Lightness42%
Temperature
Warm ← → Cool79% 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#3d2bab
RGBrgb(61, 43, 171)
HSLhsl(248, 60%, 42%)
CMYKcmyk(64%, 75%, 0%, 33%)
LABlab(28.5 45.1 -65.3)
LCHlch(28.5 79.4 304.6)
OKLCHoklch(0.404 0.191 279.9)
Decimal4008875
Display P3color(display-p3 0.239 0.169 0.671)

Copy-ready code

/* CSS */
color: #3d2bab;
background-color: #3d2bab;
/* Tailwind (arbitrary) */
class="text-[#3d2bab] bg-[#3d2bab]"
/* SCSS */
$brand: #3d2bab;
/* SwiftUI */
Color(red: 0.239, green: 0.169, blue: 0.671)
/* Android */
Color.parseColor("#3d2bab")
/* Flutter */
Color(0xFF3D2BAB)
/* Python / OpenCV (BGR) */
(171, 43, 61)

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

Accessibility — WCAG contrast

Aa
#3d2bab on white: 9.85:1
AA ✓ pass · AA-large · AAA
Aa
#3d2bab on black: 2.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0048AF
deuteranopia · #003EA9
tritanopia · #004F69

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #3d2bab is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F5F4FB
#EBE9F7
#D1CCEF
#AFA5E8
#8779DD
#5E4CD2
#4631C4
#3d2bab
#2E2182
#251C5F
#17113B
Base = 700Lightest = 50 · #F5F4FBDarkest = 950 · #17113B
:root {
  --brand-50: #F5F4FB;
  --brand-100: #EBE9F7;
  --brand-200: #D1CCEF;
  --brand-300: #AFA5E8;
  --brand-400: #8779DD;
  --brand-500: #5E4CD2;
  --brand-600: #4631C4;
  --brand-700: #3d2bab;
  --brand-800: #2E2182;
  --brand-900: #251C5F;
  --brand-950: #17113B;
  --brand: #3d2bab;
  --brand-ink: #ffffff;
}

Colors that work with #3d2bab

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#F5F4FA
Tinted page background
Border#C6C0ED
Hairlines and dividers
Muted text#564B9B
Captions on the surface
Accent#A79925
Second voice, not a rival
Dark variant#241A66
Hover, pressed, headers
Light variant#EDEBFA
Selected rows, tints
Dark surface#161424
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 #3d2bab

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#99AB2B
Analogous left#2B59AB
Analogous right#7D2BAB
Split-complement 1#AB7D2B
Split-complement 2#59AB2B
Triadic 1#AB3D2B
Triadic 2#2BAB3D
Tetradic#AB2B59

RGB percentages

Red23.9%
Green16.9%
Blue67.1%

CMYK percentages

Cyan64.3%
Magenta74.9%
Yellow0.0%
Key (black)32.9%

Color previews

#3d2bab text on a black background

contrast 2.13:1

Card sample

#3d2bab text on a white background

contrast 9.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #3d2bab;
Background color
Panel with #3d2bab background
background-color: #3d2bab;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(61, 43, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(61, 43, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3d2bab;
background: linear-gradient(135deg, #3d2bab, #922BAB);

Monochromatic scale

Palettes built from #3d2bab

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.

#3d2bab 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.

#3d2bab, answered

What color is #3d2bab?

#3d2bab is a dark vivid blue, closest to Medium Blue (ΔE2000 6.8). It sits at 248° on the hue wheel with 60% saturation and 42% lightness, which reads as cool.

What is the RGB value of #3d2bab?

rgb(61, 43, 171) — 61 red, 43 green and 171 blue out of 255, or 23.9% / 16.9% / 67.1% by channel.

Is #3d2bab a light or a dark color?

It is a dark color. Relative luminance is 0.0566 and perceived brightness is 29%, so white text on it reaches 9.85:1.

Should I use black or white text on #3d2bab?

White. It scores 9.85:1 against #3d2bab, versus 2.13:1 for black — AAA at any size.

What is the complementary color of #3d2bab?

#99AB2B sits directly opposite on the wheel. Softer options are the split-complements #AB7D2B and #59AB2B, which give the same contrast with far less vibration.

What colors go well with #3d2bab?

For interface work: #F5F4FA as the surface, #C6C0ED for borders, #564B9B for secondary text, #A79925 as an accent and #241A66 for hover and pressed states. For a palette, the analogous pair #2B59AB and #7D2BAB stays calm, while #99AB2B is the loudest partner.

What is #3d2bab in CMYK for printing?

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

Is #3d2bab warm or cool?

Cool — it scores 79 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6C2BAB; nudged cooler, #2947AD.

Work with #3d2bab in the Color Lab