Skip to content

#2f239c

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

RGB
47, 35, 156
HSL
246°, 63%, 38%
CMYK
70, 78, 0, 39
Luminance
0.0421

At a glance

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

Hex
#2f239c
Hue
246°
blue
Saturation
63%
vivid
Lightness
38%
dark
Brightness
61%
HSV value
Perceived
25%
weighted brightness
Luminance
0.0421
WCAG relative
Temperature
Cool
80/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
11.40:1
Closest name
Medium Blue
ΔE2000 6.8
Where it sits
Hue246° of 360°
Saturation63%
Lightness38%
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#2f239c
RGBrgb(47, 35, 156)
HSLhsl(246, 63%, 38%)
CMYKcmyk(70%, 78%, 0%, 39%)
LABlab(24.3 43.1 -63.2)
LCHlch(24.3 76.5 304.3)
OKLCHoklch(0.367 0.184 276.7)
Decimal3089308
Display P3color(display-p3 0.184 0.137 0.612)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f239c on white: 11.40:1
AA ✓ pass · AA-large · AAA
Aa
#2f239c on black: 1.84:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003F9F
deuteranopia · #00359A
tritanopia · #00475E

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2f239c 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
#EAE8F7
#CFCBF0
#AAA3EA
#8075E0
#5648D6
#3C2DC8
#2f239c
#281E85
#211A61
#14103D
Base = 700Lightest = 50 · #F4F4FBDarkest = 950 · #14103D
:root {
  --brand-50: #F4F4FB;
  --brand-100: #EAE8F7;
  --brand-200: #CFCBF0;
  --brand-300: #AAA3EA;
  --brand-400: #8075E0;
  --brand-500: #5648D6;
  --brand-600: #3C2DC8;
  --brand-700: #2f239c;
  --brand-800: #281E85;
  --brand-900: #211A61;
  --brand-950: #14103D;
  --brand: #2f239c;
  --brand-ink: #ffffff;
}

Colors that work with #2f239c

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#534B9B
Captions on the surface
Accent#A08D1F
Second voice, not a rival
Dark variant#1F1768
Hover, pressed, headers
Light variant#ECEAFA
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 #2f239c

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#909C23
Analogous left#23539C
Analogous right#6C239C
Split-complement 1#9C6C23
Split-complement 2#539C23
Triadic 1#9C2F23
Triadic 2#239C2F
Tetradic#9C2353

RGB percentages

Red18.4%
Green13.7%
Blue61.2%

CMYK percentages

Cyan69.9%
Magenta77.6%
Yellow0.0%
Key (black)38.8%

Color previews

#2f239c text on a black background

contrast 1.84:1

Card sample

#2f239c text on a white background

contrast 11.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 35, 156, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 35, 156, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f239c;
background: linear-gradient(135deg, #2f239c, #80239C);

Monochromatic scale

Palettes built from #2f239c

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.

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

#2f239c, answered

What color is #2f239c?

#2f239c is a dark vivid blue, closest to Medium Blue (ΔE2000 6.8). It sits at 246° on the hue wheel with 63% saturation and 38% lightness, which reads as cool.

What is the RGB value of #2f239c?

rgb(47, 35, 156) — 47 red, 35 green and 156 blue out of 255, or 18.4% / 13.7% / 61.2% by channel.

Is #2f239c a light or a dark color?

It is a dark color. Relative luminance is 0.0421 and perceived brightness is 25%, so white text on it reaches 11.40:1.

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

White. It scores 11.40:1 against #2f239c, versus 1.84:1 for black — AAA at any size.

What is the complementary color of #2f239c?

#909C23 sits directly opposite on the wheel. Softer options are the split-complements #9C6C23 and #539C23, which give the same contrast with far less vibration.

What colors go well with #2f239c?

For interface work: #F5F4FA as the surface, #C4C0ED for borders, #534B9B for secondary text, #A08D1F as an accent and #1F1768 for hover and pressed states. For a palette, the analogous pair #23539C and #6C239C stays calm, while #909C23 is the loudest partner.

What is #2f239c in CMYK for printing?

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

Is #2f239c 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 #5C239C; nudged cooler, #21429E.

Work with #2f239c in the Color Lab