Skip to content

#034cd4

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

RGB
3, 76, 212
HSL
219°, 97%, 42%
CMYK
99, 64, 0, 17
Luminance
0.0994

At a glance

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

Hex
#034cd4
Hue
219°
blue
Saturation
97%
electric
Lightness
42%
dark
Brightness
83%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0994
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.03:1
Closest name
Royal Blue
ΔE2000 9.7
Where it sits
Hue219° of 360°
Saturation97%
Lightness42%
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#034cd4
RGBrgb(3, 76, 212)
HSLhsl(219, 97%, 42%)
CMYKcmyk(99%, 64%, 0%, 17%)
LABlab(37.7 35.6 -74.4)
LCHlch(37.7 82.5 295.5)
OKLCHoklch(0.476 0.218 262.1)
Decimal216276
Display P3color(display-p3 0.012 0.298 0.831)

Copy-ready code

/* CSS */
color: #034cd4;
background-color: #034cd4;
/* Tailwind (arbitrary) */
class="text-[#034cd4] bg-[#034cd4]"
/* SCSS */
$brand: #034cd4;
/* SwiftUI */
Color(red: 0.012, green: 0.298, blue: 0.831)
/* Android */
Color.parseColor("#034cd4")
/* Flutter */
Color(0xFF034CD4)
/* Python / OpenCV (BGR) */
(212, 76, 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 #034cd4 · 7.03:1
Use #ffffffAAA at every size.
Aa
White text · 7.03:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.99:1
AA fail · AA large fail · AAA fail
Reading the other direction: #034cd4 as text scores 7.03:1 on white and 2.99:1 on black.

Accessibility — WCAG contrast

Aa
#034cd4 on white: 7.03:1
AA ✓ pass · AA-large · AAA
Aa
#034cd4 on black: 2.99:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0062D8
deuteranopia · #0050D1
tritanopia · #007189

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #034cd4 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
#C1D5FB
#90B7FD
#5992FD
#226EFC
#0357F1
#034cd4
#023AA1
#062D74
#041C48
Base = 700Lightest = 50 · #F1F6FDDarkest = 950 · #041C48
:root {
  --brand-50: #F1F6FD;
  --brand-100: #E4ECFC;
  --brand-200: #C1D5FB;
  --brand-300: #90B7FD;
  --brand-400: #5992FD;
  --brand-500: #226EFC;
  --brand-600: #0357F1;
  --brand-700: #034cd4;
  --brand-800: #023AA1;
  --brand-900: #062D74;
  --brand-950: #041C48;
  --brand: #034cd4;
  --brand-ink: #ffffff;
}

Colors that work with #034cd4

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#C0CFED
Hairlines and dividers
Muted text#4B679B
Captions on the surface
Accent#D75600
Second voice, not a rival
Dark variant#022D7E
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 #034cd4

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#D48B03
Analogous left#03B5D4
Analogous right#2203D4
Split-complement 1#D42203
Split-complement 2#B5D403
Triadic 1#D4034C
Triadic 2#4CD403
Tetradic#D403B5

RGB percentages

Red1.2%
Green29.8%
Blue83.1%

CMYK percentages

Cyan98.6%
Magenta64.2%
Yellow0.0%
Key (black)16.9%

Color previews

#034cd4 text on a black background

contrast 2.99:1

Card sample

#034cd4 text on a white background

contrast 7.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(3, 76, 212, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 76, 212, 0.45);
Border & gradient
Gradient panel
border: 3px solid #034cd4;
background: linear-gradient(135deg, #034cd4, #4503D4);

Monochromatic scale

Palettes built from #034cd4

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.

#034cd4 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.

#034cd4, answered

What color is #034cd4?

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

What is the RGB value of #034cd4?

rgb(3, 76, 212) — 3 red, 76 green and 212 blue out of 255, or 1.2% / 29.8% / 83.1% by channel.

Is #034cd4 a light or a dark color?

It is a dark color. Relative luminance is 0.0994 and perceived brightness is 36%, so white text on it reaches 7.03:1.

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

White. It scores 7.03:1 against #034cd4, versus 2.99:1 for black — AAA at any size.

What is the complementary color of #034cd4?

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

What colors go well with #034cd4?

For interface work: #F4F6FA as the surface, #C0CFED for borders, #4B679B for secondary text, #D75600 as an accent and #022D7E for hover and pressed states. For a palette, the analogous pair #03B5D4 and #2203D4 stays calm, while #D48B03 is the loudest partner.

What is #034cd4 in CMYK for printing?

cmyk(99%, 64%, 0%, 17%). 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 #034cd4 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 #0603D4; nudged cooler, #014EBD.

Work with #034cd4 in the Color Lab