Skip to content

#0f46af

a dark, electric blue · cool · closest name: Dark Slate Blue

RGB
15, 70, 175
HSL
219°, 84%, 37%
CMYK
91, 60, 0, 31
Luminance
0.0758

At a glance

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

Hex
#0f46af
Hue
219°
blue
Saturation
84%
electric
Lightness
37%
dark
Brightness
69%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0758
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.35:1
Closest name
Dark Slate Blue
ΔE2000 9.6
Where it sits
Hue219° of 360°
Saturation84%
Lightness37%
Temperature
Warm ← → Cool95% 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#0f46af
RGBrgb(15, 70, 175)
HSLhsl(219, 84%, 37%)
CMYKcmyk(91%, 60%, 0%, 31%)
LABlab(33.1 25.4 -60.4)
LCHlch(33.1 65.5 292.9)
OKLCHoklch(0.432 0.177 261.8)
Decimal1001135
Display P3color(display-p3 0.059 0.275 0.686)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f46af on white: 8.35:1
AA ✓ pass · AA-large · AAA
Aa
#0f46af on black: 2.52:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0055B3
deuteranopia · #0047AD
tritanopia · #006173

Color scale — 50 to 950

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

#F2F6FC
#E6EDFA
#C5D6F6
#98B8F6
#6495F2
#3071ED
#135AE1
#0f46af
#0D3C96
#0E2E6D
#091D44
Base = 700Lightest = 50 · #F2F6FCDarkest = 950 · #091D44
:root {
  --brand-50: #F2F6FC;
  --brand-100: #E6EDFA;
  --brand-200: #C5D6F6;
  --brand-300: #98B8F6;
  --brand-400: #6495F2;
  --brand-500: #3071ED;
  --brand-600: #135AE1;
  --brand-700: #0f46af;
  --brand-800: #0D3C96;
  --brand-900: #0E2E6D;
  --brand-950: #091D44;
  --brand: #0f46af;
  --brand-ink: #ffffff;
}

Colors that work with #0f46af

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#C0CFED
Hairlines and dividers
Muted text#4B669B
Captions on the surface
Accent#B34F0B
Second voice, not a rival
Dark variant#0A2F75
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 #0f46af

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#AF780F
Analogous left#0F96AF
Analogous right#280FAF
Split-complement 1#AF280F
Split-complement 2#96AF0F
Triadic 1#AF0F46
Triadic 2#46AF0F
Tetradic#AF0F96

RGB percentages

Red5.9%
Green27.5%
Blue68.6%

CMYK percentages

Cyan91.4%
Magenta60.0%
Yellow0.0%
Key (black)31.4%

Color previews

#0f46af text on a black background

contrast 2.52:1

Card sample

#0f46af text on a white background

contrast 8.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f46af

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.

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

#0f46af, answered

What color is #0f46af?

#0f46af is a dark electric blue, closest to Dark Slate Blue (ΔE2000 9.6). It sits at 219° on the hue wheel with 84% saturation and 37% lightness, which reads as cool.

What is the RGB value of #0f46af?

rgb(15, 70, 175) — 15 red, 70 green and 175 blue out of 255, or 5.9% / 27.5% / 68.6% by channel.

Is #0f46af a light or a dark color?

It is a dark color. Relative luminance is 0.0758 and perceived brightness is 31%, so white text on it reaches 8.35:1.

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

White. It scores 8.35:1 against #0f46af, versus 2.52:1 for black — AAA at any size.

What is the complementary color of #0f46af?

#AF780F sits directly opposite on the wheel. Softer options are the split-complements #AF280F and #96AF0F, which give the same contrast with far less vibration.

What colors go well with #0f46af?

For interface work: #F4F6FA as the surface, #C0CFED for borders, #4B669B for secondary text, #B34F0B as an accent and #0A2F75 for hover and pressed states. For a palette, the analogous pair #0F96AF and #280FAF stays calm, while #AF780F is the loudest partner.

What is #0f46af in CMYK for printing?

cmyk(91%, 60%, 0%, 31%). 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 #0f46af warm or cool?

Cool — it scores 95 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #130FAF; nudged cooler, #0B4699.

Work with #0f46af in the Color Lab