Skip to content

#2a2eb5

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

RGB
42, 46, 181
HSL
238°, 62%, 44%
CMYK
77, 75, 0, 29
Luminance
0.0578

At a glance

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

Hex
#2a2eb5
Hue
238°
blue
Saturation
62%
vivid
Lightness
44%
dark
Brightness
71%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0578
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.74:1
Closest name
Medium Blue
ΔE2000 6.4
Where it sits
Hue238° of 360°
Saturation62%
Lightness44%
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#2a2eb5
RGBrgb(42, 46, 181)
HSLhsl(238, 62%, 44%)
CMYKcmyk(77%, 75%, 0%, 29%)
LABlab(28.9 44.8 -70.8)
LCHlch(28.9 83.8 302.3)
OKLCHoklch(0.406 0.205 271.4)
Decimal2764469
Display P3color(display-p3 0.165 0.180 0.710)

Copy-ready code

/* CSS */
color: #2a2eb5;
background-color: #2a2eb5;
/* Tailwind (arbitrary) */
class="text-[#2a2eb5] bg-[#2a2eb5]"
/* SCSS */
$brand: #2a2eb5;
/* SwiftUI */
Color(red: 0.165, green: 0.180, blue: 0.710)
/* Android */
Color.parseColor("#2a2eb5")
/* Flutter */
Color(0xFF2A2EB5)
/* Python / OpenCV (BGR) */
(181, 46, 42)

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

Accessibility — WCAG contrast

Aa
#2a2eb5 on white: 9.74:1
AA ✓ pass · AA-large · AAA
Aa
#2a2eb5 on black: 2.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004BB9
deuteranopia · #003DB3
tritanopia · #00556F

Color scale — 50 to 950

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

#F4F4FB
#E8E9F7
#CCCDF0
#A4A6EA
#7679DF
#494DD5
#2E32C7
#2a2eb5
#1F2284
#1A1C60
#10123C
Base = 700Lightest = 50 · #F4F4FBDarkest = 950 · #10123C
:root {
  --brand-50: #F4F4FB;
  --brand-100: #E8E9F7;
  --brand-200: #CCCDF0;
  --brand-300: #A4A6EA;
  --brand-400: #7679DF;
  --brand-500: #494DD5;
  --brand-600: #2E32C7;
  --brand-700: #2a2eb5;
  --brand-800: #1F2284;
  --brand-900: #1A1C60;
  --brand-950: #10123C;
  --brand: #2a2eb5;
  --brand-ink: #ffffff;
}

Colors that work with #2a2eb5

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#4B4D9B
Captions on the surface
Accent#A98423
Second voice, not a rival
Dark variant#181A67
Hover, pressed, headers
Light variant#EAEBFA
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 #2a2eb5

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#B5B12A
Analogous left#2A73B5
Analogous right#6C2AB5
Split-complement 1#B56C2A
Split-complement 2#73B52A
Triadic 1#B52A2E
Triadic 2#2EB52A
Tetradic#B52A73

RGB percentages

Red16.5%
Green18.0%
Blue71.0%

CMYK percentages

Cyan76.8%
Magenta74.6%
Yellow0.0%
Key (black)29.0%

Color previews

#2a2eb5 text on a black background

contrast 2.16:1

Card sample

#2a2eb5 text on a white background

contrast 9.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 46, 181, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 46, 181, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2a2eb5;
background: linear-gradient(135deg, #2a2eb5, #832AB5);

Monochromatic scale

Palettes built from #2a2eb5

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.

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

#2a2eb5, answered

What color is #2a2eb5?

#2a2eb5 is a dark vivid blue, closest to Medium Blue (ΔE2000 6.4). It sits at 238° on the hue wheel with 62% saturation and 44% lightness, which reads as cool.

What is the RGB value of #2a2eb5?

rgb(42, 46, 181) — 42 red, 46 green and 181 blue out of 255, or 16.5% / 18% / 71% by channel.

Is #2a2eb5 a light or a dark color?

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

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

White. It scores 9.74:1 against #2a2eb5, versus 2.16:1 for black — AAA at any size.

What is the complementary color of #2a2eb5?

#B5B12A sits directly opposite on the wheel. Softer options are the split-complements #B56C2A and #73B52A, which give the same contrast with far less vibration.

What colors go well with #2a2eb5?

For interface work: #F4F4FA as the surface, #C0C1ED for borders, #4B4D9B for secondary text, #A98423 as an accent and #181A67 for hover and pressed states. For a palette, the analogous pair #2A73B5 and #6C2AB5 stays calm, while #B5B12A is the loudest partner.

What is #2a2eb5 in CMYK for printing?

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

Is #2a2eb5 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 #592AB5; nudged cooler, #2851B7.

Work with #2a2eb5 in the Color Lab