Skip to content

#0f06df

a dark, electric blue · cool · closest name: Medium Blue

RGB
15, 6, 223
HSL
243°, 95%, 45%
CMYK
93, 97, 0, 13
Luminance
0.0556

At a glance

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

Hex
#0f06df
Hue
243°
blue
Saturation
95%
electric
Lightness
45%
dark
Brightness
87%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0556
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.94:1
Closest name
Medium Blue
ΔE2000 2.6
Where it sits
Hue243° of 360°
Saturation95%
Lightness45%
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#0f06df
RGBrgb(15, 6, 223)
HSLhsl(243, 95%, 45%)
CMYKcmyk(93%, 97%, 0%, 13%)
LABlab(28.3 70.6 -96.4)
LCHlch(28.3 119.5 306.2)
OKLCHoklch(0.413 0.279 265.5)
Decimal984799
Display P3color(display-p3 0.059 0.024 0.875)

Copy-ready code

/* CSS */
color: #0f06df;
background-color: #0f06df;
/* Tailwind (arbitrary) */
class="text-[#0f06df] bg-[#0f06df]"
/* SCSS */
$brand: #0f06df;
/* SwiftUI */
Color(red: 0.059, green: 0.024, blue: 0.875)
/* Android */
Color.parseColor("#0f06df")
/* Flutter */
Color(0xFF0F06DF)
/* Python / OpenCV (BGR) */
(223, 6, 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 #0f06df · 9.94:1
Use #ffffffAAA at every size.
Aa
White text · 9.94:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.11:1
AA fail · AA large fail · AAA fail
Reading the other direction: #0f06df as text scores 9.94:1 on white and 2.11:1 on black.

Accessibility — WCAG contrast

Aa
#0f06df on white: 9.94:1
AA ✓ pass · AA-large · AAA
Aa
#0f06df on black: 2.11:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004DE4
deuteranopia · #0037DC
tritanopia · #005D83

Color scale — 50 to 950

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

#F2F1FD
#E5E4FB
#C4C2FA
#9692FC
#625BFB
#2D24F9
#0f06df
#0D05C7
#0B049F
#0C0873
#080548
Base = 600Lightest = 50 · #F2F1FDDarkest = 950 · #080548
:root {
  --brand-50: #F2F1FD;
  --brand-100: #E5E4FB;
  --brand-200: #C4C2FA;
  --brand-300: #9692FC;
  --brand-400: #625BFB;
  --brand-500: #2D24F9;
  --brand-600: #0f06df;
  --brand-700: #0D05C7;
  --brand-800: #0B049F;
  --brand-900: #0C0873;
  --brand-950: #080548;
  --brand: #0f06df;
  --brand-ink: #ffffff;
}

Colors that work with #0f06df

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#C2C0ED
Hairlines and dividers
Muted text#4E4B9B
Captions on the surface
Accent#CBA001
Second voice, not a rival
Dark variant#08037C
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 #0f06df

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#D6DF06
Analogous left#0669DF
Analogous right#7C06DF
Split-complement 1#DF7C06
Split-complement 2#69DF06
Triadic 1#DF0F06
Triadic 2#06DF0F
Tetradic#DF0669

RGB percentages

Red5.9%
Green2.4%
Blue87.5%

CMYK percentages

Cyan93.3%
Magenta97.3%
Yellow0.0%
Key (black)12.5%

Color previews

#0f06df text on a black background

contrast 2.11:1

Card sample

#0f06df text on a white background

contrast 9.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f06df

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.

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

#0f06df, answered

What color is #0f06df?

#0f06df is a dark electric blue, closest to Medium Blue (ΔE2000 2.6). It sits at 243° on the hue wheel with 95% saturation and 45% lightness, which reads as cool.

What is the RGB value of #0f06df?

rgb(15, 6, 223) — 15 red, 6 green and 223 blue out of 255, or 5.9% / 2.4% / 87.5% by channel.

Is #0f06df a light or a dark color?

It is a dark color. Relative luminance is 0.0556 and perceived brightness is 30%, so white text on it reaches 9.94:1.

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

White. It scores 9.94:1 against #0f06df, versus 2.11:1 for black — AAA at any size.

What is the complementary color of #0f06df?

#D6DF06 sits directly opposite on the wheel. Softer options are the split-complements #DF7C06 and #69DF06, which give the same contrast with far less vibration.

What colors go well with #0f06df?

For interface work: #F5F4FA as the surface, #C2C0ED for borders, #4E4B9B for secondary text, #CBA001 as an accent and #08037C for hover and pressed states. For a palette, the analogous pair #0669DF and #7C06DF stays calm, while #D6DF06 is the loudest partner.

What is #0f06df in CMYK for printing?

cmyk(93%, 97%, 0%, 13%). 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 #0f06df 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 #5F06DF; nudged cooler, #0431E1.

Work with #0f06df in the Color Lab