Skip to content

#2f359b

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

RGB
47, 53, 155
HSL
237°, 54%, 40%
CMYK
70, 66, 0, 39
Luminance
0.0552

At a glance

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

Hex
#2f359b
Hue
237°
blue
Saturation
54%
vivid
Lightness
40%
dark
Brightness
61%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0552
WCAG relative
Temperature
Cool
85/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.98:1
Closest name
Dark Slate Blue
ΔE2000 5.4
Where it sits
Hue237° of 360°
Saturation54%
Lightness40%
Temperature
Warm ← → Cool85% 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#2f359b
RGBrgb(47, 53, 155)
HSLhsl(237, 54%, 40%)
CMYKcmyk(70%, 66%, 0%, 39%)
LABlab(28.2 32.0 -56.3)
LCHlch(28.2 64.8 299.6)
OKLCHoklch(0.394 0.163 273.5)
Decimal3093915
Display P3color(display-p3 0.184 0.208 0.608)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f359b on white: 9.98:1
AA ✓ pass · AA-large · AAA
Aa
#2f359b on black: 2.10:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #00479E
deuteranopia · #003E99
tritanopia · #005063

Color scale — 50 to 950

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

#F4F5FB
#E9EAF6
#CED0ED
#A9ACE5
#7E83D8
#5359CB
#3940BC
#2f359b
#262B7D
#1F225B
#131539
Base = 700Lightest = 50 · #F4F5FBDarkest = 950 · #131539
:root {
  --brand-50: #F4F5FB;
  --brand-100: #E9EAF6;
  --brand-200: #CED0ED;
  --brand-300: #A9ACE5;
  --brand-400: #7E83D8;
  --brand-500: #5359CB;
  --brand-600: #3940BC;
  --brand-700: #2f359b;
  --brand-800: #262B7D;
  --brand-900: #1F225B;
  --brand-950: #131539;
  --brand: #2f359b;
  --brand-ink: #ffffff;
}

Colors that work with #2f359b

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#C0C3EC
Hairlines and dividers
Muted text#4B4F9B
Captions on the surface
Accent#9F7C2B
Second voice, not a rival
Dark variant#1E2162
Hover, pressed, headers
Light variant#EBECF9
Selected rows, tints
Dark surface#141524
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 #2f359b

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#9B952F
Analogous left#2F6B9B
Analogous right#5F2F9B
Split-complement 1#9B5F2F
Split-complement 2#6B9B2F
Triadic 1#9B2F35
Triadic 2#359B2F
Tetradic#9B2F6B

RGB percentages

Red18.4%
Green20.8%
Blue60.8%

CMYK percentages

Cyan69.7%
Magenta65.8%
Yellow0.0%
Key (black)39.2%

Color previews

#2f359b text on a black background

contrast 2.10:1

Card sample

#2f359b text on a white background

contrast 9.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 53, 155, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 53, 155, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f359b;
background: linear-gradient(135deg, #2f359b, #712F9B);

Monochromatic scale

Palettes built from #2f359b

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.

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

#2f359b, answered

What color is #2f359b?

#2f359b is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 5.4). It sits at 237° on the hue wheel with 54% saturation and 40% lightness, which reads as cool.

What is the RGB value of #2f359b?

rgb(47, 53, 155) — 47 red, 53 green and 155 blue out of 255, or 18.4% / 20.8% / 60.8% by channel.

Is #2f359b a light or a dark color?

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

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

White. It scores 9.98:1 against #2f359b, versus 2.10:1 for black — AAA at any size.

What is the complementary color of #2f359b?

#9B952F sits directly opposite on the wheel. Softer options are the split-complements #9B5F2F and #6B9B2F, which give the same contrast with far less vibration.

What colors go well with #2f359b?

For interface work: #F4F5FA as the surface, #C0C3EC for borders, #4B4F9B for secondary text, #9F7C2B as an accent and #1E2162 for hover and pressed states. For a palette, the analogous pair #2F6B9B and #5F2F9B stays calm, while #9B952F is the loudest partner.

What is #2f359b in CMYK for printing?

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

Is #2f359b warm or cool?

Cool — it scores 85 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #512F9B; nudged cooler, #2D519D.

Work with #2f359b in the Color Lab