Skip to content

#2f2bae

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

RGB
47, 43, 174
HSL
242°, 60%, 43%
CMYK
73, 75, 0, 32
Luminance
0.0539

At a glance

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

Hex
#2f2bae
Hue
242°
blue
Saturation
60%
vivid
Lightness
43%
dark
Brightness
68%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0539
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
10.11:1
Closest name
Medium Blue
ΔE2000 6.3
Where it sits
Hue242° of 360°
Saturation60%
Lightness43%
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#2f2bae
RGBrgb(47, 43, 174)
HSLhsl(242, 60%, 43%)
CMYKcmyk(73%, 75%, 0%, 32%)
LABlab(27.8 44.6 -68.4)
LCHlch(27.8 81.6 303.1)
OKLCHoklch(0.397 0.198 273.9)
Decimal3091374
Display P3color(display-p3 0.184 0.169 0.682)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2bae on white: 10.11:1
AA ✓ pass · AA-large · AAA
Aa
#2f2bae on black: 2.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0048B2
deuteranopia · #003BAC
tritanopia · #00516A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2f2bae 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
#E9E8F7
#CDCCEF
#A7A5E9
#7B78DE
#4F4BD3
#3530C4
#2f2bae
#232083
#1D1B5F
#12113C
Base = 700Lightest = 50 · #F4F4FBDarkest = 950 · #12113C
:root {
  --brand-50: #F4F4FB;
  --brand-100: #E9E8F7;
  --brand-200: #CDCCEF;
  --brand-300: #A7A5E9;
  --brand-400: #7B78DE;
  --brand-500: #4F4BD3;
  --brand-600: #3530C4;
  --brand-700: #2f2bae;
  --brand-800: #232083;
  --brand-900: #1D1B5F;
  --brand-950: #12113C;
  --brand: #2f2bae;
  --brand-ink: #ffffff;
}

Colors that work with #2f2bae

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#A78A25
Second voice, not a rival
Dark variant#1C1966
Hover, pressed, headers
Light variant#EBEBFA
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 #2f2bae

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#AAAE2B
Analogous left#2B68AE
Analogous right#702BAE
Split-complement 1#AE702B
Split-complement 2#68AE2B
Triadic 1#AE2F2B
Triadic 2#2BAE2F
Tetradic#AE2B68

RGB percentages

Red18.4%
Green16.9%
Blue68.2%

CMYK percentages

Cyan73.0%
Magenta75.3%
Yellow0.0%
Key (black)31.8%

Color previews

#2f2bae text on a black background

contrast 2.08:1

Card sample

#2f2bae text on a white background

contrast 10.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 43, 174, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 43, 174, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f2bae;
background: linear-gradient(135deg, #2f2bae, #862BAE);

Monochromatic scale

Palettes built from #2f2bae

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.

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

#2f2bae, answered

What color is #2f2bae?

#2f2bae is a dark vivid blue, closest to Medium Blue (ΔE2000 6.3). It sits at 242° on the hue wheel with 60% saturation and 43% lightness, which reads as cool.

What is the RGB value of #2f2bae?

rgb(47, 43, 174) — 47 red, 43 green and 174 blue out of 255, or 18.4% / 16.9% / 68.2% by channel.

Is #2f2bae a light or a dark color?

It is a dark color. Relative luminance is 0.0539 and perceived brightness is 28%, so white text on it reaches 10.11:1.

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

White. It scores 10.11:1 against #2f2bae, versus 2.08:1 for black — AAA at any size.

What is the complementary color of #2f2bae?

#AAAE2B sits directly opposite on the wheel. Softer options are the split-complements #AE702B and #68AE2B, which give the same contrast with far less vibration.

What colors go well with #2f2bae?

For interface work: #F4F4FA as the surface, #C1C0ED for borders, #4D4B9B for secondary text, #A78A25 as an accent and #1C1966 for hover and pressed states. For a palette, the analogous pair #2B68AE and #702BAE stays calm, while #AAAE2B is the loudest partner.

What is #2f2bae in CMYK for printing?

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

Is #2f2bae 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 #5F2BAE; nudged cooler, #294DB0.

Work with #2f2bae in the Color Lab