Skip to content

#2f3f91

a dark, vivid blue · cool · closest name: Dark Slate Blue

RGB
47, 63, 145
HSL
230°, 51%, 38%
CMYK
68, 57, 0, 43
Luminance
0.0620

At a glance

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

Hex
#2f3f91
Hue
230°
blue
Saturation
51%
vivid
Lightness
38%
dark
Brightness
57%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0620
WCAG relative
Temperature
Cool
89/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.37:1
Closest name
Dark Slate Blue
ΔE2000 5.2
Where it sits
Hue230° of 360°
Saturation51%
Lightness38%
Temperature
Warm ← → Cool89% 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#2f3f91
RGBrgb(47, 63, 145)
HSLhsl(230, 51%, 38%)
CMYKcmyk(68%, 57%, 0%, 43%)
LABlab(29.9 21.7 -47.3)
LCHlch(29.9 52.1 294.7)
OKLCHoklch(0.404 0.136 270.8)
Decimal3096465
Display P3color(display-p3 0.184 0.247 0.569)

Copy-ready code

/* CSS */
color: #2f3f91;
background-color: #2f3f91;
/* Tailwind (arbitrary) */
class="text-[#2f3f91] bg-[#2f3f91]"
/* SCSS */
$brand: #2f3f91;
/* SwiftUI */
Color(red: 0.184, green: 0.247, blue: 0.569)
/* Android */
Color.parseColor("#2f3f91")
/* Flutter */
Color(0xFF2F3F91)
/* Python / OpenCV (BGR) */
(145, 63, 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 #2f3f91 · 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: #2f3f91 as text scores 9.37:1 on white and 2.24:1 on black.

Accessibility — WCAG contrast

Aa
#2f3f91 on white: 9.37:1
AA ✓ pass · AA-large · AAA
Aa
#2f3f91 on black: 2.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004B94
deuteranopia · #00428F
tritanopia · #005361

Color scale — 50 to 950

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

#F4F5FA
#EAECF6
#CFD4ED
#AAB4E4
#808ED6
#5668C8
#3C50B9
#2f3f91
#28367B
#202A5A
#141A38
Base = 700Lightest = 50 · #F4F5FADarkest = 950 · #141A38
:root {
  --brand-50: #F4F5FA;
  --brand-100: #EAECF6;
  --brand-200: #CFD4ED;
  --brand-300: #AAB4E4;
  --brand-400: #808ED6;
  --brand-500: #5668C8;
  --brand-600: #3C50B9;
  --brand-700: #2f3f91;
  --brand-800: #28367B;
  --brand-900: #202A5A;
  --brand-950: #141A38;
  --brand: #2f3f91;
  --brand-ink: #ffffff;
}

Colors that work with #2f3f91

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#F4F5FA
Tinted page background
Border#C1C8EB
Hairlines and dividers
Muted text#4B589B
Captions on the surface
Accent#95692B
Second voice, not a rival
Dark variant#1F2A60
Hover, pressed, headers
Light variant#ECEEF9
Selected rows, tints
Dark surface#141624
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 #2f3f91

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#91812F
Analogous left#2F7091
Analogous right#502F91
Split-complement 1#91502F
Split-complement 2#70912F
Triadic 1#912F3F
Triadic 2#3F912F
Tetradic#912F70

RGB percentages

Red18.4%
Green24.7%
Blue56.9%

CMYK percentages

Cyan67.6%
Magenta56.6%
Yellow0.0%
Key (black)43.1%

Color previews

#2f3f91 text on a black background

contrast 2.24:1

Card sample

#2f3f91 text on a white background

contrast 9.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 63, 145, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 63, 145, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f3f91;
background: linear-gradient(135deg, #2f3f91, #602F91);

Monochromatic scale

Palettes built from #2f3f91

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.

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

#2f3f91, answered

What color is #2f3f91?

#2f3f91 is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 5.2). It sits at 230° on the hue wheel with 51% saturation and 38% lightness, which reads as cool.

What is the RGB value of #2f3f91?

rgb(47, 63, 145) — 47 red, 63 green and 145 blue out of 255, or 18.4% / 24.7% / 56.9% by channel.

Is #2f3f91 a light or a dark color?

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

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

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

What is the complementary color of #2f3f91?

#91812F sits directly opposite on the wheel. Softer options are the split-complements #91502F and #70912F, which give the same contrast with far less vibration.

What colors go well with #2f3f91?

For interface work: #F4F5FA as the surface, #C1C8EB for borders, #4B589B for secondary text, #95692B as an accent and #1F2A60 for hover and pressed states. For a palette, the analogous pair #2F7091 and #502F91 stays calm, while #91812F is the loudest partner.

What is #2f3f91 in CMYK for printing?

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

Is #2f3f91 warm or cool?

Cool — it scores 89 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #432F91; nudged cooler, #2D5293.

Work with #2f3f91 in the Color Lab