Skip to content

#2f2ac3

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

RGB
47, 42, 195
HSL
242°, 65%, 47%
CMYK
76, 79, 0, 24
Luminance
0.0620

At a glance

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

Hex
#2f2ac3
Hue
242°
blue
Saturation
65%
vivid
Lightness
47%
balanced
Brightness
76%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0620
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.37:1
Closest name
Medium Blue
ΔE2000 5.3
Where it sits
Hue242° of 360°
Saturation65%
Lightness47%
Temperature
Warm ← → Cool82% 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#2f2ac3
RGBrgb(47, 42, 195)
HSLhsl(242, 65%, 47%)
CMYKcmyk(76%, 79%, 0%, 24%)
LABlab(29.9 51.9 -77.4)
LCHlch(29.9 93.2 303.8)
OKLCHoklch(0.418 0.224 272.4)
Decimal3091139
Display P3color(display-p3 0.184 0.165 0.765)

Copy-ready code

/* CSS */
color: #2f2ac3;
background-color: #2f2ac3;
/* Tailwind (arbitrary) */
class="text-[#2f2ac3] bg-[#2f2ac3]"
/* SCSS */
$brand: #2f2ac3;
/* SwiftUI */
Color(red: 0.184, green: 0.165, blue: 0.765)
/* Android */
Color.parseColor("#2f2ac3")
/* Flutter */
Color(0xFF2F2AC3)
/* Python / OpenCV (BGR) */
(195, 42, 47)

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

Accessibility — WCAG contrast

Aa
#2f2ac3 on white: 9.37:1
AA ✓ pass · AA-large · AAA
Aa
#2f2ac3 on black: 2.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004EC7
deuteranopia · #003FC0
tritanopia · #005976

Color scale — 50 to 950

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

#F4F3FB
#E9E8F7
#CCCBF1
#A5A3EB
#7874E1
#4B46D7
#2f2ac3
#2924A8
#201D86
#1B1962
#11103D
Base = 600Lightest = 50 · #F4F3FBDarkest = 950 · #11103D
:root {
  --brand-50: #F4F3FB;
  --brand-100: #E9E8F7;
  --brand-200: #CCCBF1;
  --brand-300: #A5A3EB;
  --brand-400: #7874E1;
  --brand-500: #4B46D7;
  --brand-600: #2f2ac3;
  --brand-700: #2924A8;
  --brand-800: #201D86;
  --brand-900: #1B1962;
  --brand-950: #11103D;
  --brand: #2f2ac3;
  --brand-ink: #ffffff;
}

Colors that work with #2f2ac3

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#C1C0ED
Hairlines and dividers
Muted text#4D4B9B
Captions on the surface
Accent#AC8E20
Second voice, not a rival
Dark variant#191769
Hover, pressed, headers
Light variant#EBEAFA
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 #2f2ac3

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#BEC32A
Analogous left#2A71C3
Analogous right#7C2AC3
Split-complement 1#C37C2A
Split-complement 2#71C32A
Triadic 1#C32F2A
Triadic 2#2AC32F
Tetradic#C32A71

RGB percentages

Red18.4%
Green16.5%
Blue76.5%

CMYK percentages

Cyan75.9%
Magenta78.5%
Yellow0.0%
Key (black)23.5%

Color previews

#2f2ac3 text on a black background

contrast 2.24:1

Card sample

#2f2ac3 text on a white background

contrast 9.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 42, 195, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 42, 195, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f2ac3;
background: linear-gradient(135deg, #2f2ac3, #952AC3);

Monochromatic scale

Palettes built from #2f2ac3

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.

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

#2f2ac3, answered

What color is #2f2ac3?

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

What is the RGB value of #2f2ac3?

rgb(47, 42, 195) — 47 red, 42 green and 195 blue out of 255, or 18.4% / 16.5% / 76.5% by channel.

Is #2f2ac3 a light or a dark color?

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

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

White. It scores 9.37:1 against #2f2ac3, versus 2.24:1 for black — AAA at any size.

What is the complementary color of #2f2ac3?

#BEC32A sits directly opposite on the wheel. Softer options are the split-complements #C37C2A and #71C32A, which give the same contrast with far less vibration.

What colors go well with #2f2ac3?

For interface work: #F4F4FA as the surface, #C1C0ED for borders, #4D4B9B for secondary text, #AC8E20 as an accent and #191769 for hover and pressed states. For a palette, the analogous pair #2A71C3 and #7C2AC3 stays calm, while #BEC32A is the loudest partner.

What is #2f2ac3 in CMYK for printing?

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

Is #2f2ac3 warm or cool?

Cool — it scores 82 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #672AC3; nudged cooler, #284FC6.

Work with #2f2ac3 in the Color Lab