Skip to content

#034fd7

a dark, electric blue · cool · closest name: Royal Blue

RGB
3, 79, 215
HSL
219°, 97%, 43%
CMYK
99, 63, 0, 16
Luminance
0.1052

At a glance

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

Hex
#034fd7
Hue
219°
blue
Saturation
97%
electric
Lightness
43%
dark
Brightness
84%
HSV value
Perceived
37%
weighted brightness
Luminance
0.1052
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.77:1
Closest name
Royal Blue
ΔE2000 8.8
Where it sits
Hue219° of 360°
Saturation97%
Lightness43%
Temperature
Warm ← → Cool95% 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#034fd7
RGBrgb(3, 79, 215)
HSLhsl(219, 97%, 43%)
CMYKcmyk(99%, 63%, 0%, 16%)
LABlab(38.8 34.8 -74.4)
LCHlch(38.8 82.2 295.0)
OKLCHoklch(0.485 0.218 261.8)
Decimal217047
Display P3color(display-p3 0.012 0.310 0.843)

Copy-ready code

/* CSS */
color: #034fd7;
background-color: #034fd7;
/* Tailwind (arbitrary) */
class="text-[#034fd7] bg-[#034fd7]"
/* SCSS */
$brand: #034fd7;
/* SwiftUI */
Color(red: 0.012, green: 0.310, blue: 0.843)
/* Android */
Color.parseColor("#034fd7")
/* Flutter */
Color(0xFF034FD7)
/* Python / OpenCV (BGR) */
(215, 79, 3)

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 #034fd7 · 6.77:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.77:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.10:1
AA fail · AA large pass · AAA fail
Reading the other direction: #034fd7 as text scores 6.77:1 on white and 3.10:1 on black.

Accessibility — WCAG contrast

Aa
#034fd7 on white: 6.77:1
AA ✓ pass · AA-large · AAA
Aa
#034fd7 on black: 3.10:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0065DB
deuteranopia · #0052D4
tritanopia · #00738C

Color scale — 50 to 950

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

#F1F6FD
#E4ECFC
#C1D6FB
#90B7FD
#5994FD
#2270FC
#0359F1
#034fd7
#023BA1
#062E74
#041D48
Base = 700Lightest = 50 · #F1F6FDDarkest = 950 · #041D48
:root {
  --brand-50: #F1F6FD;
  --brand-100: #E4ECFC;
  --brand-200: #C1D6FB;
  --brand-300: #90B7FD;
  --brand-400: #5994FD;
  --brand-500: #2270FC;
  --brand-600: #0359F1;
  --brand-700: #034fd7;
  --brand-800: #023BA1;
  --brand-900: #062E74;
  --brand-950: #041D48;
  --brand: #034fd7;
  --brand-ink: #ffffff;
}

Colors that work with #034fd7

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#F4F6FA
Tinted page background
Border#C0D0ED
Hairlines and dividers
Muted text#4B679B
Captions on the surface
Accent#DA5500
Second voice, not a rival
Dark variant#022E7E
Hover, pressed, headers
Light variant#E6EFFF
Selected rows, tints
Dark surface#141A24
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 #034fd7

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
  • 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#D78B03
Analogous left#03B9D7
Analogous right#2103D7
Split-complement 1#D72103
Split-complement 2#B9D703
Triadic 1#D7034F
Triadic 2#4FD703
Tetradic#D703B9

RGB percentages

Red1.2%
Green31.0%
Blue84.3%

CMYK percentages

Cyan98.6%
Magenta63.3%
Yellow0.0%
Key (black)15.7%

Color previews

#034fd7 text on a black background

contrast 3.10:1

Card sample

#034fd7 text on a white background

contrast 6.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #034fd7;
Background color
Panel with #034fd7 background
background-color: #034fd7;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(3, 79, 215, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 79, 215, 0.45);
Border & gradient
Gradient panel
border: 3px solid #034fd7;
background: linear-gradient(135deg, #034fd7, #4403D7);

Monochromatic scale

Palettes built from #034fd7

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.

#034fd7 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#034fd7, answered

What color is #034fd7?

#034fd7 is a dark electric blue, closest to Royal Blue (ΔE2000 8.8). It sits at 219° on the hue wheel with 97% saturation and 43% lightness, which reads as cool.

What is the RGB value of #034fd7?

rgb(3, 79, 215) — 3 red, 79 green and 215 blue out of 255, or 1.2% / 31% / 84.3% by channel.

Is #034fd7 a light or a dark color?

It is a dark color. Relative luminance is 0.1052 and perceived brightness is 37%, so white text on it reaches 6.77:1.

Should I use black or white text on #034fd7?

White. It scores 6.77:1 against #034fd7, versus 3.10:1 for black — AA at any size.

What is the complementary color of #034fd7?

#D78B03 sits directly opposite on the wheel. Softer options are the split-complements #D72103 and #B9D703, which give the same contrast with far less vibration.

What colors go well with #034fd7?

For interface work: #F4F6FA as the surface, #C0D0ED for borders, #4B679B for secondary text, #DA5500 as an accent and #022E7E for hover and pressed states. For a palette, the analogous pair #03B9D7 and #2103D7 stays calm, while #D78B03 is the loudest partner.

What is #034fd7 in CMYK for printing?

cmyk(99%, 63%, 0%, 16%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #034fd7 warm or cool?

Cool — it scores 95 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0503D7; nudged cooler, #014FC0.

Work with #034fd7 in the Color Lab