Skip to content

#2f34ce

a balanced, vivid blue · cool · closest name: Blue

RGB
47, 52, 206
HSL
238°, 63%, 50%
CMYK
77, 75, 0, 19
Luminance
0.0752

At a glance

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

Hex
#2f34ce
Hue
238°
blue
Saturation
63%
vivid
Lightness
50%
balanced
Brightness
81%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0752
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
8.39:1
Closest name
Blue
ΔE2000 6.8
Where it sits
Hue238° of 360°
Saturation63%
Lightness50%
Temperature
Warm ← → Cool84% 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#2f34ce
RGBrgb(47, 52, 206)
HSLhsl(238, 63%, 50%)
CMYKcmyk(77%, 75%, 0%, 19%)
LABlab(33.0 50.1 -78.8)
LCHlch(33.0 93.3 302.5)
OKLCHoklch(0.443 0.228 271.0)
Decimal3093710
Display P3color(display-p3 0.184 0.204 0.808)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f34ce on white: 8.39:1
AA ✓ pass · AA-large · AAA
Aa
#2f34ce on black: 2.50:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0055D2
deuteranopia · #0045CB
tritanopia · #00627F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2f34ce is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F4F4FB
#E8E9F7
#CCCDF0
#A4A6EA
#7679E0
#484DD5
#2f34ce
#262AA6
#1E2285
#1A1C61
#10123C
Base = 600Lightest = 50 · #F4F4FBDarkest = 950 · #10123C
:root {
  --brand-50: #F4F4FB;
  --brand-100: #E8E9F7;
  --brand-200: #CCCDF0;
  --brand-300: #A4A6EA;
  --brand-400: #7679E0;
  --brand-500: #484DD5;
  --brand-600: #2f34ce;
  --brand-700: #262AA6;
  --brand-800: #1E2285;
  --brand-900: #1A1C61;
  --brand-950: #10123C;
  --brand: #2f34ce;
  --brand-ink: #ffffff;
}

Colors that work with #2f34ce

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#C0C1ED
Hairlines and dividers
Muted text#4B4D9B
Captions on the surface
Accent#AA8422
Second voice, not a rival
Dark variant#181A68
Hover, pressed, headers
Light variant#EAEBFA
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 #2f34ce

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
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#CEC92F
Analogous left#2F84CE
Analogous right#792FCE
Split-complement 1#CE792F
Split-complement 2#84CE2F
Triadic 1#CE2F34
Triadic 2#34CE2F
Tetradic#CE2F84

RGB percentages

Red18.4%
Green20.4%
Blue80.8%

CMYK percentages

Cyan77.2%
Magenta74.8%
Yellow0.0%
Key (black)19.2%

Color previews

#2f34ce text on a black background

contrast 2.50:1

Card sample

#2f34ce text on a white background

contrast 8.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 52, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 52, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f34ce;
background: linear-gradient(135deg, #2f34ce, #942FCE);

Monochromatic scale

Palettes built from #2f34ce

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.

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

#2f34ce, answered

What color is #2f34ce?

#2f34ce is a balanced vivid blue, closest to Blue (ΔE2000 6.8). It sits at 238° on the hue wheel with 63% saturation and 50% lightness, which reads as cool.

What is the RGB value of #2f34ce?

rgb(47, 52, 206) — 47 red, 52 green and 206 blue out of 255, or 18.4% / 20.4% / 80.8% by channel.

Is #2f34ce a light or a dark color?

It is a dark color. Relative luminance is 0.0752 and perceived brightness is 33%, so white text on it reaches 8.39:1.

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

White. It scores 8.39:1 against #2f34ce, versus 2.50:1 for black — AAA at any size.

What is the complementary color of #2f34ce?

#CEC92F sits directly opposite on the wheel. Softer options are the split-complements #CE792F and #84CE2F, which give the same contrast with far less vibration.

What colors go well with #2f34ce?

For interface work: #F4F4FA as the surface, #C0C1ED for borders, #4B4D9B for secondary text, #AA8422 as an accent and #181A68 for hover and pressed states. For a palette, the analogous pair #2F84CE and #792FCE stays calm, while #CEC92F is the loudest partner.

What is #2f34ce in CMYK for printing?

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

Is #2f34ce warm or cool?

Cool — it scores 84 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #642FCE; nudged cooler, #2D59D0.

Work with #2f34ce in the Color Lab