Skip to content

#2a2ac6

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

RGB
42, 42, 198
HSL
240°, 65%, 47%
CMYK
79, 79, 0, 22
Luminance
0.0623

At a glance

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

Hex
#2a2ac6
Hue
240°
blue
Saturation
65%
vivid
Lightness
47%
balanced
Brightness
78%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0623
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.35:1
Closest name
Medium Blue
ΔE2000 5.2
Where it sits
Hue240° of 360°
Saturation65%
Lightness47%
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#2a2ac6
RGBrgb(42, 42, 198)
HSLhsl(240, 65%, 47%)
CMYKcmyk(79%, 79%, 0%, 22%)
LABlab(30.0 52.5 -79.0)
LCHlch(30.0 94.9 303.6)
OKLCHoklch(0.419 0.229 270.8)
Decimal2763462
Display P3color(display-p3 0.165 0.165 0.776)

Copy-ready code

/* CSS */
color: #2a2ac6;
background-color: #2a2ac6;
/* Tailwind (arbitrary) */
class="text-[#2a2ac6] bg-[#2a2ac6]"
/* SCSS */
$brand: #2a2ac6;
/* SwiftUI */
Color(red: 0.165, green: 0.165, blue: 0.776)
/* Android */
Color.parseColor("#2a2ac6")
/* Flutter */
Color(0xFF2A2AC6)
/* Python / OpenCV (BGR) */
(198, 42, 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 #2a2ac6 · 9.35:1
Use #ffffffAAA at every size.
Aa
White text · 9.35:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.25:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2a2ac6 as text scores 9.35:1 on white and 2.25:1 on black.

Accessibility — WCAG contrast

Aa
#2a2ac6 on white: 9.35:1
AA ✓ pass · AA-large · AAA
Aa
#2a2ac6 on black: 2.25:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004ECA
deuteranopia · #003EC3
tritanopia · #005A78

Color scale — 50 to 950

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

#F3F3FB
#E8E8F7
#CBCBF1
#A2A2EB
#7474E2
#4646D8
#2a2ac6
#2424A8
#1D1D87
#191962
#0F0F3D
Base = 600Lightest = 50 · #F3F3FBDarkest = 950 · #0F0F3D
:root {
  --brand-50: #F3F3FB;
  --brand-100: #E8E8F7;
  --brand-200: #CBCBF1;
  --brand-300: #A2A2EB;
  --brand-400: #7474E2;
  --brand-500: #4646D8;
  --brand-600: #2a2ac6;
  --brand-700: #2424A8;
  --brand-800: #1D1D87;
  --brand-900: #191962;
  --brand-950: #0F0F3D;
  --brand: #2a2ac6;
  --brand-ink: #ffffff;
}

Colors that work with #2a2ac6

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#4B4B9B
Captions on the surface
Accent#AD8A1F
Second voice, not a rival
Dark variant#161669
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 #2a2ac6

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#C6C62A
Analogous left#2A78C6
Analogous right#782AC6
Split-complement 1#C6782A
Split-complement 2#78C62A
Triadic 1#C62A2A
Triadic 2#2AC62A
Tetradic#C62A78

RGB percentages

Red16.5%
Green16.5%
Blue77.6%

CMYK percentages

Cyan78.8%
Magenta78.8%
Yellow0.0%
Key (black)22.4%

Color previews

#2a2ac6 text on a black background

contrast 2.25:1

Card sample

#2a2ac6 text on a white background

contrast 9.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 42, 198, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 42, 198, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2a2ac6;
background: linear-gradient(135deg, #2a2ac6, #922AC6);

Monochromatic scale

Palettes built from #2a2ac6

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.

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

#2a2ac6, answered

What color is #2a2ac6?

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

What is the RGB value of #2a2ac6?

rgb(42, 42, 198) — 42 red, 42 green and 198 blue out of 255, or 16.5% / 16.5% / 77.6% by channel.

Is #2a2ac6 a light or a dark color?

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

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

White. It scores 9.35:1 against #2a2ac6, versus 2.25:1 for black — AAA at any size.

What is the complementary color of #2a2ac6?

#C6C62A sits directly opposite on the wheel. Softer options are the split-complements #C6782A and #78C62A, which give the same contrast with far less vibration.

What colors go well with #2a2ac6?

For interface work: #F4F4FA as the surface, #C0C0ED for borders, #4B4B9B for secondary text, #AD8A1F as an accent and #161669 for hover and pressed states. For a palette, the analogous pair #2A78C6 and #782AC6 stays calm, while #C6C62A is the loudest partner.

What is #2a2ac6 in CMYK for printing?

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

Is #2a2ac6 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 #632AC6; nudged cooler, #2851C9.

Work with #2a2ac6 in the Color Lab