Skip to content

#030c1f

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

RGB
3, 12, 31
HSL
221°, 82%, 7%
CMYK
90, 61, 0, 88
Luminance
0.0038

At a glance

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

Hex
#030c1f
Hue
221°
blue
Saturation
82%
electric
Lightness
7%
deep
Brightness
12%
HSV value
Perceived
6%
weighted brightness
Luminance
0.0038
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Electric
Best ink
White
19.51:1
Closest name
Black
ΔE2000 10.3
Where it sits
Hue221° of 360°
Saturation82%
Lightness7%
Temperature
Warm ← → Cool94% 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#030c1f
RGBrgb(3, 12, 31)
HSLhsl(221, 82%, 7%)
CMYKcmyk(90%, 61%, 0%, 88%)
LABlab(3.4 2.2 -12.7)
LCHlch(3.4 12.9 279.8)
OKLCHoklch(0.157 0.044 259.9)
Decimal199711
Display P3color(display-p3 0.012 0.047 0.122)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#030c1f on white: 19.51:1
AA ✓ pass · AA-large · AAA
Aa
#030c1f on black: 1.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #040E20
deuteranopia · #010B1F
tritanopia · #001013

Color scale — 50 to 950

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

#F2F6FC
#E6ECFA
#C6D5F6
#99B6F5
#6692F0
#326EEB
#1656DF
#1248BA
#0E3A95
#0F2D6C
#030c1f
Base = 950Lightest = 50 · #F2F6FCDarkest = 950 · #030c1f
:root {
  --brand-50: #F2F6FC;
  --brand-100: #E6ECFA;
  --brand-200: #C6D5F6;
  --brand-300: #99B6F5;
  --brand-400: #6692F0;
  --brand-500: #326EEB;
  --brand-600: #1656DF;
  --brand-700: #1248BA;
  --brand-800: #0E3A95;
  --brand-900: #0F2D6C;
  --brand-950: #030c1f;
  --brand: #030c1f;
  --brand-ink: #ffffff;
}

Colors that work with #030c1f

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#C0CEED
Hairlines and dividers
Muted text#4B649B
Captions on the surface
Accent#200F02
Second voice, not a rival
Dark variant#0B2D74
Hover, pressed, headers
Light variant#E8EFFD
Selected rows, tints
Dark surface#141924
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 #030c1f

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#1F1603
Analogous left#031A1F
Analogous right#08031F
Split-complement 1#1F0803
Split-complement 2#1A1F03
Triadic 1#1F030C
Triadic 2#0C1F03
Tetradic#1F031A

RGB percentages

Red1.2%
Green4.7%
Blue12.2%

CMYK percentages

Cyan90.3%
Magenta61.3%
Yellow0.0%
Key (black)87.8%

Color previews

#030c1f text on a black background

contrast 1.08:1

Card sample

#030c1f text on a white background

contrast 19.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #030c1f

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.

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

#030c1f, answered

What color is #030c1f?

#030c1f is a deep electric blue, closest to Black (ΔE2000 10.3). It sits at 221° on the hue wheel with 82% saturation and 7% lightness, which reads as cool.

What is the RGB value of #030c1f?

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

Is #030c1f a light or a dark color?

It is a dark color. Relative luminance is 0.0038 and perceived brightness is 6%, so white text on it reaches 19.51:1.

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

White. It scores 19.51:1 against #030c1f, versus 1.08:1 for black — AAA at any size.

What is the complementary color of #030c1f?

#1F1603 sits directly opposite on the wheel. Softer options are the split-complements #1F0803 and #1A1F03, which give the same contrast with far less vibration.

What colors go well with #030c1f?

For interface work: #F4F6FA as the surface, #C0CEED for borders, #4B649B for secondary text, #200F02 as an accent and #0B2D74 for hover and pressed states. For a palette, the analogous pair #031A1F and #08031F stays calm, while #1F1603 is the loudest partner.

What is #030c1f in CMYK for printing?

cmyk(90%, 61%, 0%, 88%). 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 #030c1f warm or cool?

Cool — it scores 94 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #04031F; nudged cooler, #031020.

Work with #030c1f in the Color Lab