Skip to content

#2f1dbf

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

RGB
47, 29, 191
HSL
247°, 74%, 43%
CMYK
75, 85, 0, 25
Luminance
0.0524

At a glance

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

Hex
#2f1dbf
Hue
247°
blue
Saturation
74%
vivid
Lightness
43%
dark
Brightness
75%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0524
WCAG relative
Temperature
Cool
80/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
10.25:1
Closest name
Medium Blue
ΔE2000 3.3
Where it sits
Hue247° of 360°
Saturation74%
Lightness43%
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#2f1dbf
RGBrgb(47, 29, 191)
HSLhsl(247, 74%, 43%)
CMYKcmyk(75%, 85%, 0%, 25%)
LABlab(27.4 56.6 -79.2)
LCHlch(27.4 97.3 305.6)
OKLCHoklch(0.400 0.229 273.6)
Decimal3087807
Display P3color(display-p3 0.184 0.114 0.749)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f1dbf on white: 10.25:1
AA ✓ pass · AA-large · AAA
Aa
#2f1dbf on black: 2.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0048C3
deuteranopia · #0039BC
tritanopia · #005372

Color scale — 50 to 950

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

#F4F3FC
#E9E7F8
#CDC8F3
#A79EF0
#7B6DE9
#4F3CE1
#3420D4
#2f1dbf
#23168E
#1D1467
#120C40
Base = 700Lightest = 50 · #F4F3FCDarkest = 950 · #120C40
:root {
  --brand-50: #F4F3FC;
  --brand-100: #E9E7F8;
  --brand-200: #CDC8F3;
  --brand-300: #A79EF0;
  --brand-400: #7B6DE9;
  --brand-500: #4F3CE1;
  --brand-600: #3420D4;
  --brand-700: #2f1dbf;
  --brand-800: #23168E;
  --brand-900: #1D1467;
  --brand-950: #120C40;
  --brand: #2f1dbf;
  --brand-ink: #ffffff;
}

Colors that work with #2f1dbf

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#C5C0ED
Hairlines and dividers
Muted text#544B9B
Captions on the surface
Accent#B5A017
Second voice, not a rival
Dark variant#1B116F
Hover, pressed, headers
Light variant#EBE9FC
Selected rows, tints
Dark surface#161424
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 #2f1dbf

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#ADBF1D
Analogous left#1D5CBF
Analogous right#801DBF
Split-complement 1#BF801D
Split-complement 2#5CBF1D
Triadic 1#BF2F1D
Triadic 2#1DBF2F
Tetradic#BF1D5C

RGB percentages

Red18.4%
Green11.4%
Blue74.9%

CMYK percentages

Cyan75.4%
Magenta84.8%
Yellow0.0%
Key (black)25.1%

Color previews

#2f1dbf text on a black background

contrast 2.05:1

Card sample

#2f1dbf text on a white background

contrast 10.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 29, 191, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 29, 191, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f1dbf;
background: linear-gradient(135deg, #2f1dbf, #9B1DBF);

Monochromatic scale

Palettes built from #2f1dbf

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.

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

#2f1dbf, answered

What color is #2f1dbf?

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

What is the RGB value of #2f1dbf?

rgb(47, 29, 191) — 47 red, 29 green and 191 blue out of 255, or 18.4% / 11.4% / 74.9% by channel.

Is #2f1dbf a light or a dark color?

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

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

White. It scores 10.25:1 against #2f1dbf, versus 2.05:1 for black — AAA at any size.

What is the complementary color of #2f1dbf?

#ADBF1D sits directly opposite on the wheel. Softer options are the split-complements #BF801D and #5CBF1D, which give the same contrast with far less vibration.

What colors go well with #2f1dbf?

For interface work: #F5F4FA as the surface, #C5C0ED for borders, #544B9B for secondary text, #B5A017 as an accent and #1B116F for hover and pressed states. For a palette, the analogous pair #1D5CBF and #801DBF stays calm, while #ADBF1D is the loudest partner.

What is #2f1dbf in CMYK for printing?

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

Is #2f1dbf 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 #6A1DBF; nudged cooler, #1B3FC1.

Work with #2f1dbf in the Color Lab