Skip to content

#08046c

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

RGB
8, 4, 108
HSL
242°, 93%, 22%
CMYK
93, 96, 0, 58
Luminance
0.0122

At a glance

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

Hex
#08046c
Hue
242°
blue
Saturation
93%
electric
Lightness
22%
deep
Brightness
42%
HSV value
Perceived
14%
weighted brightness
Luminance
0.0122
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Electric
Best ink
White
16.88:1
Closest name
Navy
ΔE2000 3
Where it sits
Hue242° of 360°
Saturation93%
Lightness22%
Temperature
Warm ← → Cool82% 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#08046c
RGBrgb(8, 4, 108)
HSLhsl(242, 93%, 22%)
CMYKcmyk(93%, 96%, 0%, 58%)
LABlab(10.7 40.2 -55.5)
LCHlch(10.7 68.6 305.9)
OKLCHoklch(0.248 0.161 267.4)
Decimal525420
Display P3color(display-p3 0.031 0.016 0.424)

Copy-ready code

/* CSS */
color: #08046c;
background-color: #08046c;
/* Tailwind (arbitrary) */
class="text-[#08046c] bg-[#08046c]"
/* SCSS */
$brand: #08046c;
/* SwiftUI */
Color(red: 0.031, green: 0.016, blue: 0.424)
/* Android */
Color.parseColor("#08046c")
/* Flutter */
Color(0xFF08046C)
/* Python / OpenCV (BGR) */
(108, 4, 8)

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

Accessibility — WCAG contrast

Aa
#08046c on white: 16.88:1
AA ✓ pass · AA-large · AAA
Aa
#08046c on black: 1.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #00226F
deuteranopia · #00176A
tritanopia · #002A3D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #08046c is pinned to step 900; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F2F2FD
#E5E4FB
#C4C2F9
#9793FB
#635DF9
#2F27F7
#1109EC
#0F07C5
#0C069D
#08046c
#080647
Base = 900Lightest = 50 · #F2F2FDDarkest = 950 · #080647
:root {
  --brand-50: #F2F2FD;
  --brand-100: #E5E4FB;
  --brand-200: #C4C2F9;
  --brand-300: #9793FB;
  --brand-400: #635DF9;
  --brand-500: #2F27F7;
  --brand-600: #1109EC;
  --brand-700: #0F07C5;
  --brand-800: #0C069D;
  --brand-900: #08046c;
  --brand-950: #080647;
  --brand: #08046c;
  --brand-ink: #ffffff;
}

Colors that work with #08046c

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#F5F4FA
Tinted page background
Border#C1C0ED
Hairlines and dividers
Muted text#4E4B9B
Captions on the surface
Accent#6E5702
Second voice, not a rival
Dark variant#09057B
Hover, pressed, headers
Light variant#E7E6FE
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 #08046c

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#686C04
Analogous left#04346C
Analogous right#3C046C
Split-complement 1#6C3C04
Split-complement 2#346C04
Triadic 1#6C0804
Triadic 2#046C08
Tetradic#6C0434

RGB percentages

Red3.1%
Green1.6%
Blue42.4%

CMYK percentages

Cyan92.6%
Magenta96.3%
Yellow0.0%
Key (black)57.6%

Color previews

#08046c text on a black background

contrast 1.24:1

Card sample

#08046c text on a white background

contrast 16.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #08046c;
Background color
Panel with #08046c background
background-color: #08046c;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #08046c;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(8, 4, 108, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 4, 108, 0.45);
Border & gradient
Gradient panel
border: 3px solid #08046c;
background: linear-gradient(135deg, #08046c, #4D046C);

Monochromatic scale

Palettes built from #08046c

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.

#08046c 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.

#08046c, answered

What color is #08046c?

#08046c is a deep electric blue, closest to Navy (ΔE2000 3). It sits at 242° on the hue wheel with 93% saturation and 22% lightness, which reads as cool.

What is the RGB value of #08046c?

rgb(8, 4, 108) — 8 red, 4 green and 108 blue out of 255, or 3.1% / 1.6% / 42.4% by channel.

Is #08046c a light or a dark color?

It is a dark color. Relative luminance is 0.0122 and perceived brightness is 14%, so white text on it reaches 16.88:1.

Should I use black or white text on #08046c?

White. It scores 16.88:1 against #08046c, versus 1.24:1 for black — AAA at any size.

What is the complementary color of #08046c?

#686C04 sits directly opposite on the wheel. Softer options are the split-complements #6C3C04 and #346C04, which give the same contrast with far less vibration.

What colors go well with #08046c?

For interface work: #F5F4FA as the surface, #C1C0ED for borders, #4E4B9B for secondary text, #6E5702 as an accent and #09057B for hover and pressed states. For a palette, the analogous pair #04346C and #3C046C stays calm, while #686C04 is the loudest partner.

What is #08046c in CMYK for printing?

cmyk(93%, 96%, 0%, 58%). 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 #08046c warm or cool?

Cool — it scores 82 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2E046C; nudged cooler, #03226D.

Work with #08046c in the Color Lab