Skip to content

#3a2eb4

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

RGB
58, 46, 180
HSL
245°, 59%, 44%
CMYK
68, 74, 0, 29
Luminance
0.0615

At a glance

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

Hex
#3a2eb4
Hue
245°
blue
Saturation
59%
vivid
Lightness
44%
dark
Brightness
71%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0615
WCAG relative
Temperature
Cool
80/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.42:1
Closest name
Medium Blue
ΔE2000 6.7
Where it sits
Hue245° of 360°
Saturation59%
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#3a2eb4
RGBrgb(58, 46, 180)
HSLhsl(245, 59%, 44%)
CMYKcmyk(68%, 74%, 0%, 29%)
LABlab(29.8 46.0 -68.7)
LCHlch(29.8 82.7 303.8)
OKLCHoklch(0.415 0.200 277.1)
Decimal3813044
Display P3color(display-p3 0.227 0.180 0.706)

Copy-ready code

/* CSS */
color: #3a2eb4;
background-color: #3a2eb4;
/* Tailwind (arbitrary) */
class="text-[#3a2eb4] bg-[#3a2eb4]"
/* SCSS */
$brand: #3a2eb4;
/* SwiftUI */
Color(red: 0.227, green: 0.180, blue: 0.706)
/* Android */
Color.parseColor("#3a2eb4")
/* Flutter */
Color(0xFF3A2EB4)
/* Python / OpenCV (BGR) */
(180, 46, 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 #3a2eb4 · 9.42:1
Use #ffffffAAA at every size.
Aa
White text · 9.42:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.23:1
AA fail · AA large fail · AAA fail
Reading the other direction: #3a2eb4 as text scores 9.42:1 on white and 2.23:1 on black.

Accessibility — WCAG contrast

Aa
#3a2eb4 on white: 9.42:1
AA ✓ pass · AA-large · AAA
Aa
#3a2eb4 on black: 2.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004CB8
deuteranopia · #0040B2
tritanopia · #00546F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #3a2eb4 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
#D0CDEF
#ACA6E8
#8279DD
#584CD1
#3a2eb4
#342AA2
#2A2182
#221C5F
#15113B
Base = 600Lightest = 50 · #F4F4FBDarkest = 950 · #15113B
:root {
  --brand-50: #F4F4FB;
  --brand-100: #EAE9F7;
  --brand-200: #D0CDEF;
  --brand-300: #ACA6E8;
  --brand-400: #8279DD;
  --brand-500: #584CD1;
  --brand-600: #3a2eb4;
  --brand-700: #342AA2;
  --brand-800: #2A2182;
  --brand-900: #221C5F;
  --brand-950: #15113B;
  --brand: #3a2eb4;
  --brand-ink: #ffffff;
}

Colors that work with #3a2eb4

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#A79325
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 #3a2eb4

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#A8B42E
Analogous left#2E65B4
Analogous right#7D2EB4
Split-complement 1#B47D2E
Split-complement 2#65B42E
Triadic 1#B43A2E
Triadic 2#2EB43A
Tetradic#B42E65

RGB percentages

Red22.7%
Green18.0%
Blue70.6%

CMYK percentages

Cyan67.8%
Magenta74.4%
Yellow0.0%
Key (black)29.4%

Color previews

#3a2eb4 text on a black background

contrast 2.23:1

Card sample

#3a2eb4 text on a white background

contrast 9.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #3a2eb4

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.

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

#3a2eb4, answered

What color is #3a2eb4?

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

What is the RGB value of #3a2eb4?

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

Is #3a2eb4 a light or a dark color?

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

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

White. It scores 9.42:1 against #3a2eb4, versus 2.23:1 for black — AAA at any size.

What is the complementary color of #3a2eb4?

#A8B42E sits directly opposite on the wheel. Softer options are the split-complements #B47D2E and #65B42E, which give the same contrast with far less vibration.

What colors go well with #3a2eb4?

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

What is #3a2eb4 in CMYK for printing?

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

Is #3a2eb4 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 #6B2EB4; nudged cooler, #2C4EB6.

Work with #3a2eb4 in the Color Lab