Skip to content

#032f7d

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

RGB
3, 47, 125
HSL
218°, 95%, 25%
CMYK
98, 62, 0, 51
Luminance
0.0353

At a glance

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

Hex
#032f7d
Hue
218°
blue
Saturation
95%
electric
Lightness
25%
dark
Brightness
49%
HSV value
Perceived
22%
weighted brightness
Luminance
0.0353
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Electric
Best ink
White
12.31:1
Closest name
Midnight Blue
ΔE2000 7.6
Where it sits
Hue218° of 360°
Saturation95%
Lightness25%
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#032f7d
RGBrgb(3, 47, 125)
HSLhsl(218, 95%, 25%)
CMYKcmyk(98%, 62%, 0%, 51%)
LABlab(22.1 20.2 -47.7)
LCHlch(22.1 51.8 292.9)
OKLCHoklch(0.335 0.140 261.1)
Decimal208765
Display P3color(display-p3 0.012 0.184 0.490)

Copy-ready code

/* CSS */
color: #032f7d;
background-color: #032f7d;
/* Tailwind (arbitrary) */
class="text-[#032f7d] bg-[#032f7d]"
/* SCSS */
$brand: #032f7d;
/* SwiftUI */
Color(red: 0.012, green: 0.184, blue: 0.490)
/* Android */
Color.parseColor("#032f7d")
/* Flutter */
Color(0xFF032F7D)
/* Python / OpenCV (BGR) */
(125, 47, 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 #032f7d · 12.31:1
Use #ffffffAAA at every size.
Aa
White text · 12.31:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.71:1
AA fail · AA large fail · AAA fail
Reading the other direction: #032f7d as text scores 12.31:1 on white and 1.71:1 on black.

Accessibility — WCAG contrast

Aa
#032f7d on white: 12.31:1
AA ✓ pass · AA-large · AAA
Aa
#032f7d on black: 1.71:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003A80
deuteranopia · #00307C
tritanopia · #004351

Color scale — 50 to 950

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

#F1F6FD
#E4ECFC
#C2D6FA
#91B8FC
#5B94FB
#2471FA
#065AEF
#054BC7
#043C9F
#032f7d
#051D48
Base = 900Lightest = 50 · #F1F6FDDarkest = 950 · #051D48
:root {
  --brand-50: #F1F6FD;
  --brand-100: #E4ECFC;
  --brand-200: #C2D6FA;
  --brand-300: #91B8FC;
  --brand-400: #5B94FB;
  --brand-500: #2471FA;
  --brand-600: #065AEF;
  --brand-700: #054BC7;
  --brand-800: #043C9F;
  --brand-900: #032f7d;
  --brand-950: #051D48;
  --brand: #032f7d;
  --brand-ink: #ffffff;
}

Colors that work with #032f7d

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#4B689B
Captions on the surface
Accent#803200
Second voice, not a rival
Dark variant#032F7D
Hover, pressed, headers
Light variant#E6EFFE
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 #032f7d

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#7D5103
Analogous left#036C7D
Analogous right#14037D
Split-complement 1#7D1403
Split-complement 2#6C7D03
Triadic 1#7D032F
Triadic 2#2F7D03
Tetradic#7D036C

RGB percentages

Red1.2%
Green18.4%
Blue49.0%

CMYK percentages

Cyan97.6%
Magenta62.4%
Yellow0.0%
Key (black)51.0%

Color previews

#032f7d text on a black background

contrast 1.71:1

Card sample

#032f7d text on a white background

contrast 12.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #032f7d;
Background color
Panel with #032f7d background
background-color: #032f7d;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(3, 47, 125, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 47, 125, 0.45);
Border & gradient
Gradient panel
border: 3px solid #032f7d;
background: linear-gradient(135deg, #032f7d, #28037D);

Monochromatic scale

Palettes built from #032f7d

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.

#032f7d 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.

#032f7d, answered

What color is #032f7d?

#032f7d is a dark electric blue, closest to Midnight Blue (ΔE2000 7.6). It sits at 218° on the hue wheel with 95% saturation and 25% lightness, which reads as cool.

What is the RGB value of #032f7d?

rgb(3, 47, 125) — 3 red, 47 green and 125 blue out of 255, or 1.2% / 18.4% / 49% by channel.

Is #032f7d a light or a dark color?

It is a dark color. Relative luminance is 0.0353 and perceived brightness is 22%, so white text on it reaches 12.31:1.

Should I use black or white text on #032f7d?

White. It scores 12.31:1 against #032f7d, versus 1.71:1 for black — AAA at any size.

What is the complementary color of #032f7d?

#7D5103 sits directly opposite on the wheel. Softer options are the split-complements #7D1403 and #6C7D03, which give the same contrast with far less vibration.

What colors go well with #032f7d?

For interface work: #F4F6FA as the surface, #C0D0ED for borders, #4B689B for secondary text, #803200 as an accent and #032F7D for hover and pressed states. For a palette, the analogous pair #036C7D and #14037D stays calm, while #7D5103 is the loudest partner.

What is #032f7d in CMYK for printing?

cmyk(98%, 62%, 0%, 51%). 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 #032f7d 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 #04037D; nudged cooler, #012C65.

Work with #032f7d in the Color Lab