Skip to content

#0f0366

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

RGB
15, 3, 102
HSL
247°, 94%, 21%
CMYK
85, 97, 0, 60
Luminance
0.0113

At a glance

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

Hex
#0f0366
Hue
247°
blue
Saturation
94%
electric
Lightness
21%
deep
Brightness
40%
HSV value
Perceived
14%
weighted brightness
Luminance
0.0113
WCAG relative
Temperature
Cool
79/100 cool
Color family
Blue
Tone
Electric
Best ink
White
17.14:1
Closest name
Navy
ΔE2000 3.9
Where it sits
Hue247° of 360°
Saturation94%
Lightness21%
Temperature
Warm ← → Cool79% 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#0f0366
RGBrgb(15, 3, 102)
HSLhsl(247, 94%, 21%)
CMYKcmyk(85%, 97%, 0%, 60%)
LABlab(10.0 39.1 -52.8)
LCHlch(10.0 65.7 306.6)
OKLCHoklch(0.242 0.152 271.0)
Decimal983910
Display P3color(display-p3 0.059 0.012 0.400)

Copy-ready code

/* CSS */
color: #0f0366;
background-color: #0f0366;
/* Tailwind (arbitrary) */
class="text-[#0f0366] bg-[#0f0366]"
/* SCSS */
$brand: #0f0366;
/* SwiftUI */
Color(red: 0.059, green: 0.012, blue: 0.400)
/* Android */
Color.parseColor("#0f0366")
/* Flutter */
Color(0xFF0F0366)
/* Python / OpenCV (BGR) */
(102, 3, 15)

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

Accessibility — WCAG contrast

Aa
#0f0366 on white: 17.14:1
AA ✓ pass · AA-large · AAA
Aa
#0f0366 on black: 1.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #002068
deuteranopia · #001664
tritanopia · #002739

Color scale — 50 to 950

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

#F3F2FD
#E7E4FB
#C9C2FA
#9F92FC
#6F5BFA
#3F25F9
#2307EE
#1D06C6
#17059F
#0f0366
#0D0547
Base = 900Lightest = 50 · #F3F2FDDarkest = 950 · #0D0547
:root {
  --brand-50: #F3F2FD;
  --brand-100: #E7E4FB;
  --brand-200: #C9C2FA;
  --brand-300: #9F92FC;
  --brand-400: #6F5BFA;
  --brand-500: #3F25F9;
  --brand-600: #2307EE;
  --brand-700: #1D06C6;
  --brand-800: #17059F;
  --brand-900: #0f0366;
  --brand-950: #0D0547;
  --brand: #0f0366;
  --brand-ink: #ffffff;
}

Colors that work with #0f0366

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#C5C0ED
Hairlines and dividers
Muted text#544B9B
Captions on the surface
Accent#685B01
Second voice, not a rival
Dark variant#12047C
Hover, pressed, headers
Light variant#E9E6FE
Selected rows, tints
Dark surface#161424
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 #0f0366

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#5A6603
Analogous left#032866
Analogous right#410366
Split-complement 1#664103
Split-complement 2#286603
Triadic 1#660F03
Triadic 2#03660F
Tetradic#660328

RGB percentages

Red5.9%
Green1.2%
Blue40.0%

CMYK percentages

Cyan85.3%
Magenta97.1%
Yellow0.0%
Key (black)60.0%

Color previews

#0f0366 text on a black background

contrast 1.23:1

Card sample

#0f0366 text on a white background

contrast 17.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0f0366;
Background color
Panel with #0f0366 background
background-color: #0f0366;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0f0366;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #0f0366

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.

#0f0366 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.

#0f0366, answered

What color is #0f0366?

#0f0366 is a deep electric blue, closest to Navy (ΔE2000 3.9). It sits at 247° on the hue wheel with 94% saturation and 21% lightness, which reads as cool.

What is the RGB value of #0f0366?

rgb(15, 3, 102) — 15 red, 3 green and 102 blue out of 255, or 5.9% / 1.2% / 40% by channel.

Is #0f0366 a light or a dark color?

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

Should I use black or white text on #0f0366?

White. It scores 17.14:1 against #0f0366, versus 1.23:1 for black — AAA at any size.

What is the complementary color of #0f0366?

#5A6603 sits directly opposite on the wheel. Softer options are the split-complements #664103 and #286603, which give the same contrast with far less vibration.

What colors go well with #0f0366?

For interface work: #F5F4FA as the surface, #C5C0ED for borders, #544B9B for secondary text, #685B01 as an accent and #12047C for hover and pressed states. For a palette, the analogous pair #032866 and #410366 stays calm, while #5A6603 is the loudest partner.

What is #0f0366 in CMYK for printing?

cmyk(85%, 97%, 0%, 60%). 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 #0f0366 warm or cool?

Cool — it scores 79 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #330366; nudged cooler, #021B67.

Work with #0f0366 in the Color Lab