Skip to content

#061c4f

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

RGB
6, 28, 79
HSL
222°, 86%, 17%
CMYK
92, 65, 0, 69
Luminance
0.0143

At a glance

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

Hex
#061c4f
Hue
222°
blue
Saturation
86%
electric
Lightness
17%
deep
Brightness
31%
HSV value
Perceived
13%
weighted brightness
Luminance
0.0143
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Electric
Best ink
White
16.32:1
Closest name
Midnight Blue
ΔE2000 7.4
Where it sits
Hue222° of 360°
Saturation86%
Lightness17%
Temperature
Warm ← → Cool93% 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#061c4f
RGBrgb(6, 28, 79)
HSLhsl(222, 86%, 17%)
CMYKcmyk(92%, 65%, 0%, 69%)
LABlab(12.2 14.3 -33.7)
LCHlch(12.2 36.6 293.0)
OKLCHoklch(0.248 0.098 263.1)
Decimal400463
Display P3color(display-p3 0.024 0.110 0.310)

Copy-ready code

/* CSS */
color: #061c4f;
background-color: #061c4f;
/* Tailwind (arbitrary) */
class="text-[#061c4f] bg-[#061c4f]"
/* SCSS */
$brand: #061c4f;
/* SwiftUI */
Color(red: 0.024, green: 0.110, blue: 0.310)
/* Android */
Color.parseColor("#061c4f")
/* Flutter */
Color(0xFF061C4F)
/* Python / OpenCV (BGR) */
(79, 28, 6)

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

Accessibility — WCAG contrast

Aa
#061c4f on white: 16.32:1
AA ✓ pass · AA-large · AAA
Aa
#061c4f on black: 1.29:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #002351
deuteranopia · #001D4E
tritanopia · #002932

Color scale — 50 to 950

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

#F2F5FD
#E5ECFA
#C5D4F7
#97B4F7
#638EF3
#2E69EF
#1151E4
#0E43BE
#0C3698
#0D2A6E
#061c4f
Base = 950Lightest = 50 · #F2F5FDDarkest = 950 · #061c4f
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E5ECFA;
  --brand-200: #C5D4F7;
  --brand-300: #97B4F7;
  --brand-400: #638EF3;
  --brand-500: #2E69EF;
  --brand-600: #1151E4;
  --brand-700: #0E43BE;
  --brand-800: #0C3698;
  --brand-900: #0D2A6E;
  --brand-950: #061c4f;
  --brand: #061c4f;
  --brand-ink: #ffffff;
}

Colors that work with #061c4f

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#C0CDED
Hairlines and dividers
Muted text#4B639B
Captions on the surface
Accent#512704
Second voice, not a rival
Dark variant#092A77
Hover, pressed, headers
Light variant#E7EEFD
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 #061c4f

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#4F3906
Analogous left#06414F
Analogous right#15064F
Split-complement 1#4F1506
Split-complement 2#414F06
Triadic 1#4F061C
Triadic 2#1C4F06
Tetradic#4F0641

RGB percentages

Red2.4%
Green11.0%
Blue31.0%

CMYK percentages

Cyan92.4%
Magenta64.6%
Yellow0.0%
Key (black)69.0%

Color previews

#061c4f text on a black background

contrast 1.29:1

Card sample

#061c4f text on a white background

contrast 16.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #061c4f;
Background color
Panel with #061c4f background
background-color: #061c4f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #061c4f;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(6, 28, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(6, 28, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #061c4f;
background: linear-gradient(135deg, #061c4f, #21064F);

Monochromatic scale

Palettes built from #061c4f

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.

#061c4f 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.

#061c4f, answered

What color is #061c4f?

#061c4f is a deep electric blue, closest to Midnight Blue (ΔE2000 7.4). It sits at 222° on the hue wheel with 86% saturation and 17% lightness, which reads as cool.

What is the RGB value of #061c4f?

rgb(6, 28, 79) — 6 red, 28 green and 79 blue out of 255, or 2.4% / 11% / 31% by channel.

Is #061c4f a light or a dark color?

It is a dark color. Relative luminance is 0.0143 and perceived brightness is 13%, so white text on it reaches 16.32:1.

Should I use black or white text on #061c4f?

White. It scores 16.32:1 against #061c4f, versus 1.29:1 for black — AAA at any size.

What is the complementary color of #061c4f?

#4F3906 sits directly opposite on the wheel. Softer options are the split-complements #4F1506 and #414F06, which give the same contrast with far less vibration.

What colors go well with #061c4f?

For interface work: #F4F6FA as the surface, #C0CDED for borders, #4B639B for secondary text, #512704 as an accent and #092A77 for hover and pressed states. For a palette, the analogous pair #06414F and #15064F stays calm, while #4F3906 is the loudest partner.

What is #061c4f in CMYK for printing?

cmyk(92%, 65%, 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 #061c4f warm or cool?

Cool — it scores 93 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0B064F; nudged cooler, #052550.

Work with #061c4f in the Color Lab