Skip to content

#030c49

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

RGB
3, 12, 73
HSL
232°, 92%, 15%
CMYK
96, 84, 0, 71
Luminance
0.0076

At a glance

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

Hex
#030c49
Hue
232°
blue
Saturation
92%
electric
Lightness
15%
deep
Brightness
29%
HSV value
Perceived
10%
weighted brightness
Luminance
0.0076
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Electric
Best ink
White
18.22:1
Closest name
Midnight Blue
ΔE2000 7
Where it sits
Hue232° of 360°
Saturation92%
Lightness15%
Temperature
Warm ← → Cool88% 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#030c49
RGBrgb(3, 12, 73)
HSLhsl(232, 92%, 15%)
CMYKcmyk(96%, 84%, 0%, 71%)
LABlab(6.9 23.0 -38.2)
LCHlch(6.9 44.6 301.1)
OKLCHoklch(0.206 0.111 266.0)
Decimal199753
Display P3color(display-p3 0.012 0.047 0.286)

Copy-ready code

/* CSS */
color: #030c49;
background-color: #030c49;
/* Tailwind (arbitrary) */
class="text-[#030c49] bg-[#030c49]"
/* SCSS */
$brand: #030c49;
/* SwiftUI */
Color(red: 0.012, green: 0.047, blue: 0.286)
/* Android */
Color.parseColor("#030c49")
/* Flutter */
Color(0xFF030C49)
/* Python / OpenCV (BGR) */
(73, 12, 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 #030c49 · 18.22:1
Use #ffffffAAA at every size.
Aa
White text · 18.22:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.15:1
AA fail · AA large fail · AAA fail
Reading the other direction: #030c49 as text scores 18.22:1 on white and 1.15:1 on black.

Accessibility — WCAG contrast

Aa
#030c49 on white: 18.22:1
AA ✓ pass · AA-large · AAA
Aa
#030c49 on black: 1.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #00194B
deuteranopia · #001248
tritanopia · #001E2A

Color scale — 50 to 950

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

#F2F3FD
#E4E7FB
#C3CAF9
#93A0FB
#5D71F8
#2742F6
#0A27EB
#0820C4
#061A9D
#091771
#030c49
Base = 950Lightest = 50 · #F2F3FDDarkest = 950 · #030c49
:root {
  --brand-50: #F2F3FD;
  --brand-100: #E4E7FB;
  --brand-200: #C3CAF9;
  --brand-300: #93A0FB;
  --brand-400: #5D71F8;
  --brand-500: #2742F6;
  --brand-600: #0A27EB;
  --brand-700: #0820C4;
  --brand-800: #061A9D;
  --brand-900: #091771;
  --brand-950: #030c49;
  --brand: #030c49;
  --brand-ink: #ffffff;
}

Colors that work with #030c49

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#F4F5FA
Tinted page background
Border#C0C6ED
Hairlines and dividers
Muted text#4B559B
Captions on the surface
Accent#4B2F01
Second voice, not a rival
Dark variant#05147A
Hover, pressed, headers
Light variant#E7EAFE
Selected rows, tints
Dark surface#141624
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 #030c49

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#494003
Analogous left#032F49
Analogous right#1D0349
Split-complement 1#491D03
Split-complement 2#2F4903
Triadic 1#49030C
Triadic 2#0C4903
Tetradic#49032F

RGB percentages

Red1.2%
Green4.7%
Blue28.6%

CMYK percentages

Cyan95.9%
Magenta83.6%
Yellow0.0%
Key (black)71.4%

Color previews

#030c49 text on a black background

contrast 1.15:1

Card sample

#030c49 text on a white background

contrast 18.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #030c49;
Background color
Panel with #030c49 background
background-color: #030c49;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #030c49;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(3, 12, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 12, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #030c49;
background: linear-gradient(135deg, #030c49, #290349);

Monochromatic scale

Palettes built from #030c49

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.

#030c49 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.

#030c49, answered

What color is #030c49?

#030c49 is a deep electric blue, closest to Midnight Blue (ΔE2000 7). It sits at 232° on the hue wheel with 92% saturation and 15% lightness, which reads as cool.

What is the RGB value of #030c49?

rgb(3, 12, 73) — 3 red, 12 green and 73 blue out of 255, or 1.2% / 4.7% / 28.6% by channel.

Is #030c49 a light or a dark color?

It is a dark color. Relative luminance is 0.0076 and perceived brightness is 10%, so white text on it reaches 18.22:1.

Should I use black or white text on #030c49?

White. It scores 18.22:1 against #030c49, versus 1.15:1 for black — AAA at any size.

What is the complementary color of #030c49?

#494003 sits directly opposite on the wheel. Softer options are the split-complements #491D03 and #2F4903, which give the same contrast with far less vibration.

What colors go well with #030c49?

For interface work: #F4F5FA as the surface, #C0C6ED for borders, #4B559B for secondary text, #4B2F01 as an accent and #05147A for hover and pressed states. For a palette, the analogous pair #032F49 and #1D0349 stays calm, while #494003 is the loudest partner.

What is #030c49 in CMYK for printing?

cmyk(96%, 84%, 0%, 71%). 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 #030c49 warm or cool?

Cool — it scores 88 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #140349; nudged cooler, #021D4A.

Work with #030c49 in the Color Lab