Skip to content

#030c2b

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

RGB
3, 12, 43
HSL
227°, 87%, 9%
CMYK
93, 72, 0, 83
Luminance
0.0046

At a glance

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

Hex
#030c2b
Hue
227°
blue
Saturation
87%
electric
Lightness
9%
deep
Brightness
17%
HSV value
Perceived
7%
weighted brightness
Luminance
0.0046
WCAG relative
Temperature
Cool
91/100 cool
Color family
Blue
Tone
Electric
Best ink
White
19.24:1
Closest name
Midnight Blue
ΔE2000 13.6
Where it sits
Hue227° of 360°
Saturation87%
Lightness9%
Temperature
Warm ← → Cool91% 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#030c2b
RGBrgb(3, 12, 43)
HSLhsl(227, 87%, 9%)
CMYKcmyk(93%, 72%, 0%, 83%)
LABlab(4.1 7.0 -20.9)
LCHlch(4.1 22.1 288.5)
OKLCHoklch(0.170 0.065 264.7)
Decimal199723
Display P3color(display-p3 0.012 0.047 0.169)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#030c2b on white: 19.24:1
AA ✓ pass · AA-large · AAA
Aa
#030c2b on black: 1.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #00112C
deuteranopia · #000D2A
tritanopia · #001419

Color scale — 50 to 950

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

#F2F4FD
#E5EAFA
#C4D0F7
#96ACF8
#6283F4
#2D59F0
#1040E5
#0D35BF
#0B2B99
#0C226E
#030c2b
Base = 950Lightest = 50 · #F2F4FDDarkest = 950 · #030c2b
:root {
  --brand-50: #F2F4FD;
  --brand-100: #E5EAFA;
  --brand-200: #C4D0F7;
  --brand-300: #96ACF8;
  --brand-400: #6283F4;
  --brand-500: #2D59F0;
  --brand-600: #1040E5;
  --brand-700: #0D35BF;
  --brand-800: #0B2B99;
  --brand-900: #0C226E;
  --brand-950: #030c2b;
  --brand: #030c2b;
  --brand-ink: #ffffff;
}

Colors that work with #030c2b

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#C0CAED
Hairlines and dividers
Muted text#4B5D9B
Captions on the surface
Accent#2C1802
Second voice, not a rival
Dark variant#082177
Hover, pressed, headers
Light variant#E7ECFD
Selected rows, tints
Dark surface#141724
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 #030c2b

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#2B2203
Analogous left#03202B
Analogous right#0E032B
Split-complement 1#2B0E03
Split-complement 2#202B03
Triadic 1#2B030C
Triadic 2#0C2B03
Tetradic#2B0320

RGB percentages

Red1.2%
Green4.7%
Blue16.9%

CMYK percentages

Cyan93.0%
Magenta72.1%
Yellow0.0%
Key (black)83.1%

Color previews

#030c2b text on a black background

contrast 1.09:1

Card sample

#030c2b text on a white background

contrast 19.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #030c2b

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.

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

#030c2b, answered

What color is #030c2b?

#030c2b is a deep electric blue, closest to Midnight Blue (ΔE2000 13.6). It sits at 227° on the hue wheel with 87% saturation and 9% lightness, which reads as cool.

What is the RGB value of #030c2b?

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

Is #030c2b a light or a dark color?

It is a dark color. Relative luminance is 0.0046 and perceived brightness is 7%, so white text on it reaches 19.24:1.

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

White. It scores 19.24:1 against #030c2b, versus 1.09:1 for black — AAA at any size.

What is the complementary color of #030c2b?

#2B2203 sits directly opposite on the wheel. Softer options are the split-complements #2B0E03 and #202B03, which give the same contrast with far less vibration.

What colors go well with #030c2b?

For interface work: #F4F6FA as the surface, #C0CAED for borders, #4B5D9B for secondary text, #2C1802 as an accent and #082177 for hover and pressed states. For a palette, the analogous pair #03202B and #0E032B stays calm, while #2B2203 is the loudest partner.

What is #030c2b in CMYK for printing?

cmyk(93%, 72%, 0%, 83%). 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 #030c2b warm or cool?

Cool — it scores 91 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #09032B; nudged cooler, #03142B.

Work with #030c2b in the Color Lab