Skip to content

#3a2db4

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

RGB
58, 45, 180
HSL
246°, 60%, 44%
CMYK
68, 75, 0, 29
Luminance
0.0607

At a glance

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

Hex
#3a2db4
Hue
246°
blue
Saturation
60%
vivid
Lightness
44%
dark
Brightness
71%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0607
WCAG relative
Temperature
Cool
80/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.48:1
Closest name
Medium Blue
ΔE2000 6.5
Where it sits
Hue246° of 360°
Saturation60%
Lightness44%
Temperature
Warm ← → Cool80% 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#3a2db4
RGBrgb(58, 45, 180)
HSLhsl(246, 60%, 44%)
CMYKcmyk(68%, 75%, 0%, 29%)
LABlab(29.6 46.5 -69.0)
LCHlch(29.6 83.2 304.0)
OKLCHoklch(0.413 0.201 277.3)
Decimal3812788
Display P3color(display-p3 0.227 0.176 0.706)

Copy-ready code

/* CSS */
color: #3a2db4;
background-color: #3a2db4;
/* Tailwind (arbitrary) */
class="text-[#3a2db4] bg-[#3a2db4]"
/* SCSS */
$brand: #3a2db4;
/* SwiftUI */
Color(red: 0.227, green: 0.176, blue: 0.706)
/* Android */
Color.parseColor("#3a2db4")
/* Flutter */
Color(0xFF3A2DB4)
/* Python / OpenCV (BGR) */
(180, 45, 58)

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

Accessibility — WCAG contrast

Aa
#3a2db4 on white: 9.48:1
AA ✓ pass · AA-large · AAA
Aa
#3a2db4 on black: 2.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004BB8
deuteranopia · #0040B2
tritanopia · #00546E

Color scale — 50 to 950

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

#F4F4FB
#EAE9F7
#D0CCEF
#ACA5E9
#8278DD
#584BD2
#3a2db4
#3529A3
#2A2183
#221B5F
#15113B
Base = 600Lightest = 50 · #F4F4FBDarkest = 950 · #15113B
:root {
  --brand-50: #F4F4FB;
  --brand-100: #EAE9F7;
  --brand-200: #D0CCEF;
  --brand-300: #ACA5E9;
  --brand-400: #8278DD;
  --brand-500: #584BD2;
  --brand-600: #3a2db4;
  --brand-700: #3529A3;
  --brand-800: #2A2183;
  --brand-900: #221B5F;
  --brand-950: #15113B;
  --brand: #3a2db4;
  --brand-ink: #ffffff;
}

Colors that work with #3a2db4

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#C4C0ED
Hairlines and dividers
Muted text#524B9B
Captions on the surface
Accent#A89324
Second voice, not a rival
Dark variant#211A66
Hover, pressed, headers
Light variant#ECEBFA
Selected rows, tints
Dark surface#151424
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 #3a2db4

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#A7B42D
Analogous left#2D63B4
Analogous right#7D2DB4
Split-complement 1#B47D2D
Split-complement 2#63B42D
Triadic 1#B43A2D
Triadic 2#2DB43A
Tetradic#B42D63

RGB percentages

Red22.7%
Green17.6%
Blue70.6%

CMYK percentages

Cyan67.8%
Magenta75.0%
Yellow0.0%
Key (black)29.4%

Color previews

#3a2db4 text on a black background

contrast 2.21:1

Card sample

#3a2db4 text on a white background

contrast 9.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(58, 45, 180, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(58, 45, 180, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3a2db4;
background: linear-gradient(135deg, #3a2db4, #942DB4);

Monochromatic scale

Palettes built from #3a2db4

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.

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

#3a2db4, answered

What color is #3a2db4?

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

What is the RGB value of #3a2db4?

rgb(58, 45, 180) — 58 red, 45 green and 180 blue out of 255, or 22.7% / 17.6% / 70.6% by channel.

Is #3a2db4 a light or a dark color?

It is a dark color. Relative luminance is 0.0607 and perceived brightness is 30%, so white text on it reaches 9.48:1.

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

White. It scores 9.48:1 against #3a2db4, versus 2.21:1 for black — AAA at any size.

What is the complementary color of #3a2db4?

#A7B42D sits directly opposite on the wheel. Softer options are the split-complements #B47D2D and #63B42D, which give the same contrast with far less vibration.

What colors go well with #3a2db4?

For interface work: #F5F4FA as the surface, #C4C0ED for borders, #524B9B for secondary text, #A89324 as an accent and #211A66 for hover and pressed states. For a palette, the analogous pair #2D63B4 and #7D2DB4 stays calm, while #A7B42D is the loudest partner.

What is #3a2db4 in CMYK for printing?

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

Is #3a2db4 warm or cool?

Cool — it scores 80 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6C2DB4; nudged cooler, #2B4DB6.

Work with #3a2db4 in the Color Lab