Skip to content

#01034f

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

RGB
1, 3, 79
HSL
239°, 98%, 16%
CMYK
99, 96, 0, 69
Luminance
0.0064

At a glance

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

Hex
#01034f
Hue
239°
blue
Saturation
98%
electric
Lightness
16%
deep
Brightness
31%
HSV value
Perceived
11%
weighted brightness
Luminance
0.0064
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Electric
Best ink
White
18.63:1
Closest name
Midnight Blue
ΔE2000 6.8
Where it sits
Hue239° of 360°
Saturation98%
Lightness16%
Temperature
Warm ← → Cool84% 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#01034f
RGBrgb(1, 3, 79)
HSLhsl(239, 98%, 16%)
CMYKcmyk(99%, 96%, 0%, 69%)
LABlab(5.7 30.4 -44.3)
LCHlch(5.7 53.7 304.5)
OKLCHoklch(0.199 0.130 265.0)
Decimal66383
Display P3color(display-p3 0.004 0.012 0.310)

Copy-ready code

/* CSS */
color: #01034f;
background-color: #01034f;
/* Tailwind (arbitrary) */
class="text-[#01034f] bg-[#01034f]"
/* SCSS */
$brand: #01034f;
/* SwiftUI */
Color(red: 0.004, green: 0.012, blue: 0.310)
/* Android */
Color.parseColor("#01034f")
/* Flutter */
Color(0xFF01034F)
/* Python / OpenCV (BGR) */
(79, 3, 1)

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 #01034f · 18.63:1
Use #ffffffAAA at every size.
Aa
White text · 18.63:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.13:1
AA fail · AA large fail · AAA fail
Reading the other direction: #01034f as text scores 18.63:1 on white and 1.13:1 on black.

Accessibility — WCAG contrast

Aa
#01034f on white: 18.63:1
AA ✓ pass · AA-large · AAA
Aa
#01034f on black: 1.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #001751
deuteranopia · #000E4E
tritanopia · #001D2B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #01034f 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.

#F1F2FD
#E4E4FC
#C1C2FB
#9093FE
#595DFD
#2127FC
#0309F2
#0308C9
#0206A1
#060974
#01034f
Base = 950Lightest = 50 · #F1F2FDDarkest = 950 · #01034f
:root {
  --brand-50: #F1F2FD;
  --brand-100: #E4E4FC;
  --brand-200: #C1C2FB;
  --brand-300: #9093FE;
  --brand-400: #595DFD;
  --brand-500: #2127FC;
  --brand-600: #0309F2;
  --brand-700: #0308C9;
  --brand-800: #0206A1;
  --brand-900: #060974;
  --brand-950: #01034f;
  --brand: #01034f;
  --brand-ink: #ffffff;
}

Colors that work with #01034f

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#F4F4FA
Tinted page background
Border#C0C1ED
Hairlines and dividers
Muted text#4B4D9B
Captions on the surface
Accent#503A00
Second voice, not a rival
Dark variant#02057E
Hover, pressed, headers
Light variant#E6E6FF
Selected rows, tints
Dark surface#141424
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 #01034f

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#4F4D01
Analogous left#012A4F
Analogous right#26014F
Split-complement 1#4F2601
Split-complement 2#2A4F01
Triadic 1#4F0103
Triadic 2#034F01
Tetradic#4F012A

RGB percentages

Red0.4%
Green1.2%
Blue31.0%

CMYK percentages

Cyan98.7%
Magenta96.2%
Yellow0.0%
Key (black)69.0%

Color previews

#01034f text on a black background

contrast 1.13:1

Card sample

#01034f text on a white background

contrast 18.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #01034f;
Background color
Panel with #01034f background
background-color: #01034f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #01034f;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(1, 3, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(1, 3, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #01034f;
background: linear-gradient(135deg, #01034f, #33014F);

Monochromatic scale

Palettes built from #01034f

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.

#01034f 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.

#01034f, answered

What color is #01034f?

#01034f is a deep electric blue, closest to Midnight Blue (ΔE2000 6.8). It sits at 239° on the hue wheel with 98% saturation and 16% lightness, which reads as cool.

What is the RGB value of #01034f?

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

Is #01034f a light or a dark color?

It is a dark color. Relative luminance is 0.0064 and perceived brightness is 11%, so white text on it reaches 18.63:1.

Should I use black or white text on #01034f?

White. It scores 18.63:1 against #01034f, versus 1.13:1 for black — AAA at any size.

What is the complementary color of #01034f?

#4F4D01 sits directly opposite on the wheel. Softer options are the split-complements #4F2601 and #2A4F01, which give the same contrast with far less vibration.

What colors go well with #01034f?

For interface work: #F4F4FA as the surface, #C0C1ED for borders, #4B4D9B for secondary text, #503A00 as an accent and #02057E for hover and pressed states. For a palette, the analogous pair #012A4F and #26014F stays calm, while #4F4D01 is the loudest partner.

What is #01034f in CMYK for printing?

cmyk(99%, 96%, 0%, 69%). 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 #01034f warm or cool?

Cool — it scores 84 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1C014F; nudged cooler, #001C50.

Work with #01034f in the Color Lab