Skip to content

#034eb8

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

RGB
3, 78, 184
HSL
215°, 97%, 37%
CMYK
98, 58, 0, 28
Luminance
0.0893

At a glance

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

Hex
#034eb8
Hue
215°
blue
Saturation
97%
electric
Lightness
37%
dark
Brightness
72%
HSV value
Perceived
34%
weighted brightness
Luminance
0.0893
WCAG relative
Temperature
Cool
97/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.54:1
Closest name
Royal Blue
ΔE2000 10.9
Where it sits
Hue215° of 360°
Saturation97%
Lightness37%
Temperature
Warm ← → Cool97% 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#034eb8
RGBrgb(3, 78, 184)
HSLhsl(215, 97%, 37%)
CMYKcmyk(98%, 58%, 0%, 28%)
LABlab(35.8 23.2 -61.2)
LCHlch(35.8 65.4 290.8)
OKLCHoklch(0.455 0.180 259.7)
Decimal216760
Display P3color(display-p3 0.012 0.306 0.722)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#034eb8 on white: 7.54:1
AA ✓ pass · AA-large · AAA
Aa
#034eb8 on black: 2.79:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005CBC
deuteranopia · #004DB6
tritanopia · #00697B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #034eb8 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
#E4EEFC
#C1D9FB
#91BEFD
#599DFC
#227CFB
#0466F1
#034eb8
#0344A1
#073474
#042048
Base = 700Lightest = 50 · #F1F6FDDarkest = 950 · #042048
:root {
  --brand-50: #F1F6FD;
  --brand-100: #E4EEFC;
  --brand-200: #C1D9FB;
  --brand-300: #91BEFD;
  --brand-400: #599DFC;
  --brand-500: #227CFB;
  --brand-600: #0466F1;
  --brand-700: #034eb8;
  --brand-800: #0344A1;
  --brand-900: #073474;
  --brand-950: #042048;
  --brand: #034eb8;
  --brand-ink: #ffffff;
}

Colors that work with #034eb8

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#F4F7FA
Tinted page background
Border#C0D2ED
Hairlines and dividers
Muted text#4B6C9B
Captions on the surface
Accent#BB3F00
Second voice, not a rival
Dark variant#02357D
Hover, pressed, headers
Light variant#E6F0FF
Selected rows, tints
Dark surface#141B24
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 #034eb8

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#B86D03
Analogous left#03A9B8
Analogous right#1203B8
Split-complement 1#B81203
Split-complement 2#A9B803
Triadic 1#B8034E
Triadic 2#4EB803
Tetradic#B803A9

RGB percentages

Red1.2%
Green30.6%
Blue72.2%

CMYK percentages

Cyan98.4%
Magenta57.6%
Yellow0.0%
Key (black)27.8%

Color previews

#034eb8 text on a black background

contrast 2.79:1

Card sample

#034eb8 text on a white background

contrast 7.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(3, 78, 184, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 78, 184, 0.45);
Border & gradient
Gradient panel
border: 3px solid #034eb8;
background: linear-gradient(135deg, #034eb8, #3103B8);

Monochromatic scale

Palettes built from #034eb8

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.

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

#034eb8, answered

What color is #034eb8?

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

What is the RGB value of #034eb8?

rgb(3, 78, 184) — 3 red, 78 green and 184 blue out of 255, or 1.2% / 30.6% / 72.2% by channel.

Is #034eb8 a light or a dark color?

It is a dark color. Relative luminance is 0.0893 and perceived brightness is 34%, so white text on it reaches 7.54:1.

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

White. It scores 7.54:1 against #034eb8, versus 2.79:1 for black — AAA at any size.

What is the complementary color of #034eb8?

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

What colors go well with #034eb8?

For interface work: #F4F7FA as the surface, #C0D2ED for borders, #4B6C9B for secondary text, #BB3F00 as an accent and #02357D for hover and pressed states. For a palette, the analogous pair #03A9B8 and #1203B8 stays calm, while #B86D03 is the loudest partner.

What is #034eb8 in CMYK for printing?

cmyk(98%, 58%, 0%, 28%). 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 #034eb8 warm or cool?

Cool — it scores 97 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #030CB8; nudged cooler, #0148A1.

Work with #034eb8 in the Color Lab