Skip to content

#03040d

a deep, vivid blue · cool · closest name: Black

RGB
3, 4, 13
HSL
234°, 63%, 3%
CMYK
77, 69, 0, 95
Luminance
0.0014

At a glance

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

Hex
#03040d
Hue
234°
blue
Saturation
63%
vivid
Lightness
3%
deep
Brightness
5%
HSV value
Perceived
2%
weighted brightness
Luminance
0.0014
WCAG relative
Temperature
Cool
87/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
20.45:1
Closest name
Black
ΔE2000 3.7
Where it sits
Hue234° of 360°
Saturation63%
Lightness3%
Temperature
Warm ← → Cool87% 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#03040d
RGBrgb(3, 4, 13)
HSLhsl(234, 63%, 3%)
CMYKcmyk(77%, 69%, 0%, 95%)
LABlab(1.2 1.0 -3.6)
LCHlch(1.2 3.7 286.0)
OKLCHoklch(0.112 0.025 274.3)
Decimal197645
Display P3color(display-p3 0.012 0.016 0.051)

Copy-ready code

/* CSS */
color: #03040d;
background-color: #03040d;
/* Tailwind (arbitrary) */
class="text-[#03040d] bg-[#03040d]"
/* SCSS */
$brand: #03040d;
/* SwiftUI */
Color(red: 0.012, green: 0.016, blue: 0.051)
/* Android */
Color.parseColor("#03040d")
/* Flutter */
Color(0xFF03040D)
/* Python / OpenCV (BGR) */
(13, 4, 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 #03040d · 20.45:1
Use #ffffffAAA at every size.
Aa
White text · 20.45:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.03:1
AA fail · AA large fail · AAA fail
Reading the other direction: #03040d as text scores 20.45:1 on white and 1.03:1 on black.

Accessibility — WCAG contrast

Aa
#03040d on white: 20.45:1
AA ✓ pass · AA-large · AAA
Aa
#03040d on black: 1.03:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #02050D
deuteranopia · #02040D
tritanopia · #010507

Color scale — 50 to 950

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

#F4F4FB
#E8EAF7
#CCCFF0
#A4ABEA
#7681DF
#4957D5
#2E3DC7
#2633A6
#1F2985
#1A2160
#03040d
Base = 950Lightest = 50 · #F4F4FBDarkest = 950 · #03040d
:root {
  --brand-50: #F4F4FB;
  --brand-100: #E8EAF7;
  --brand-200: #CCCFF0;
  --brand-300: #A4ABEA;
  --brand-400: #7681DF;
  --brand-500: #4957D5;
  --brand-600: #2E3DC7;
  --brand-700: #2633A6;
  --brand-800: #1F2985;
  --brand-900: #1A2160;
  --brand-950: #03040d;
  --brand: #03040d;
  --brand-ink: #ffffff;
}

Colors that work with #03040d

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#C0C4ED
Hairlines and dividers
Muted text#4B539B
Captions on the surface
Accent#0D0903
Second voice, not a rival
Dark variant#182068
Hover, pressed, headers
Light variant#EAECFA
Selected rows, tints
Dark surface#141524
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 #03040d

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#0D0C03
Analogous left#03090D
Analogous right#07030D
Split-complement 1#0D0703
Split-complement 2#090D03
Triadic 1#0D0304
Triadic 2#040D03
Tetradic#0D0309

RGB percentages

Red1.2%
Green1.6%
Blue5.1%

CMYK percentages

Cyan76.9%
Magenta69.2%
Yellow0.0%
Key (black)94.9%

Color previews

#03040d text on a black background

contrast 1.03:1

Card sample

#03040d text on a white background

contrast 20.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #03040d;
Background color
Panel with #03040d background
background-color: #03040d;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #03040d;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(3, 4, 13, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 4, 13, 0.45);
Border & gradient
Gradient panel
border: 3px solid #03040d;
background: linear-gradient(135deg, #03040d, #09030D);

Monochromatic scale

Palettes built from #03040d

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.

#03040d 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

Converts to four-color process without much drama. Proof it anyway.

#03040d, answered

What color is #03040d?

#03040d is a deep vivid blue, closest to Black (ΔE2000 3.7). It sits at 234° on the hue wheel with 63% saturation and 3% lightness, which reads as cool.

What is the RGB value of #03040d?

rgb(3, 4, 13) — 3 red, 4 green and 13 blue out of 255, or 1.2% / 1.6% / 5.1% by channel.

Is #03040d a light or a dark color?

It is a dark color. Relative luminance is 0.0014 and perceived brightness is 2%, so white text on it reaches 20.45:1.

Should I use black or white text on #03040d?

White. It scores 20.45:1 against #03040d, versus 1.03:1 for black — AAA at any size.

What is the complementary color of #03040d?

#0D0C03 sits directly opposite on the wheel. Softer options are the split-complements #0D0703 and #090D03, which give the same contrast with far less vibration.

What colors go well with #03040d?

For interface work: #F4F5FA as the surface, #C0C4ED for borders, #4B539B for secondary text, #0D0903 as an accent and #182068 for hover and pressed states. For a palette, the analogous pair #03090D and #07030D stays calm, while #0D0C03 is the loudest partner.

What is #03040d in CMYK for printing?

cmyk(77%, 69%, 0%, 95%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #03040d warm or cool?

Cool — it scores 87 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #06030D; nudged cooler, #03070D.

Work with #03040d in the Color Lab