Skip to content

#034f8c

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

RGB
3, 79, 140
HSL
207°, 96%, 28%
CMYK
98, 44, 0, 45
Luminance
0.0750

At a glance

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

Hex
#034f8c
Hue
207°
blue
Saturation
96%
electric
Lightness
28%
dark
Brightness
55%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0750
WCAG relative
Temperature
Cool
99/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.40:1
Closest name
Dark Slate Blue
ΔE2000 14
Where it sits
Hue207° of 360°
Saturation96%
Lightness28%
Temperature
Warm ← → Cool99% 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#034f8c
RGBrgb(3, 79, 140)
HSLhsl(207, 96%, 28%)
CMYKcmyk(98%, 44%, 0%, 45%)
LABlab(32.9 4.2 -39.5)
LCHlch(32.9 39.7 276.1)
OKLCHoklch(0.422 0.120 250.7)
Decimal216972
Display P3color(display-p3 0.012 0.310 0.549)

Copy-ready code

/* CSS */
color: #034f8c;
background-color: #034f8c;
/* Tailwind (arbitrary) */
class="text-[#034f8c] bg-[#034f8c]"
/* SCSS */
$brand: #034f8c;
/* SwiftUI */
Color(red: 0.012, green: 0.310, blue: 0.549)
/* Android */
Color.parseColor("#034f8c")
/* Flutter */
Color(0xFF034F8C)
/* Python / OpenCV (BGR) */
(140, 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 #034f8c · 8.40:1
Use #ffffffAAA at every size.
Aa
White text · 8.40: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: #034f8c as text scores 8.40:1 on white and 2.50:1 on black.

Accessibility — WCAG contrast

Aa
#034f8c on white: 8.40:1
AA ✓ pass · AA-large · AAA
Aa
#034f8c on black: 2.50:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2F548E
deuteranopia · #16488B
tritanopia · #005E66

Color scale — 50 to 950

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

#F1F8FD
#E4F1FC
#C1E1FA
#91CDFD
#5AB4FB
#239BFA
#0587F0
#0471C8
#034f8c
#074373
#052A48
Base = 800Lightest = 50 · #F1F8FDDarkest = 950 · #052A48
:root {
  --brand-50: #F1F8FD;
  --brand-100: #E4F1FC;
  --brand-200: #C1E1FA;
  --brand-300: #91CDFD;
  --brand-400: #5AB4FB;
  --brand-500: #239BFA;
  --brand-600: #0587F0;
  --brand-700: #0471C8;
  --brand-800: #034f8c;
  --brand-900: #074373;
  --brand-950: #052A48;
  --brand: #034f8c;
  --brand-ink: #ffffff;
}

Colors that work with #034f8c

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#F4F8FA
Tinted page background
Border#C0D9ED
Hairlines and dividers
Muted text#4B779B
Captions on the surface
Accent#8F1C00
Second voice, not a rival
Dark variant#03467D
Hover, pressed, headers
Light variant#E6F4FE
Selected rows, tints
Dark surface#141D24
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 #034f8c

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#8C4003
Analogous left#038C84
Analogous right#030B8C
Split-complement 1#8C030B
Split-complement 2#8C8403
Triadic 1#8C034F
Triadic 2#4F8C03
Tetradic#84038C

RGB percentages

Red1.2%
Green31.0%
Blue54.9%

CMYK percentages

Cyan97.9%
Magenta43.6%
Yellow0.0%
Key (black)45.1%

Color previews

#034f8c text on a black background

contrast 2.50:1

Card sample

#034f8c text on a white background

contrast 8.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #034f8c

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.

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

#034f8c, answered

What color is #034f8c?

#034f8c is a dark electric blue, closest to Dark Slate Blue (ΔE2000 14). It sits at 207° on the hue wheel with 96% saturation and 28% lightness, which reads as cool.

What is the RGB value of #034f8c?

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

Is #034f8c a light or a dark color?

It is a dark color. Relative luminance is 0.0750 and perceived brightness is 30%, so white text on it reaches 8.40:1.

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

White. It scores 8.40:1 against #034f8c, versus 2.50:1 for black — AAA at any size.

What is the complementary color of #034f8c?

#8C4003 sits directly opposite on the wheel. Softer options are the split-complements #8C030B and #8C8403, which give the same contrast with far less vibration.

What colors go well with #034f8c?

For interface work: #F4F8FA as the surface, #C0D9ED for borders, #4B779B for secondary text, #8F1C00 as an accent and #03467D for hover and pressed states. For a palette, the analogous pair #038C84 and #030B8C stays calm, while #8C4003 is the loudest partner.

What is #034f8c in CMYK for printing?

cmyk(98%, 44%, 0%, 45%). 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 #034f8c warm or cool?

Cool — it scores 99 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #031D8C; nudged cooler, #013B74.

Work with #034f8c in the Color Lab