Skip to content

#0f5dfe

a balanced, electric blue · cool · closest name: Royal Blue

RGB
15, 93, 254
HSL
220°, 99%, 53%
CMYK
94, 63, 0, 0
Luminance
0.1509

At a glance

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

Hex
#0f5dfe
Hue
220°
blue
Saturation
99%
electric
Lightness
53%
balanced
Brightness
100%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1509
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Electric
Best ink
White
5.23:1
Closest name
Royal Blue
ΔE2000 4.7
Where it sits
Hue220° of 360°
Saturation99%
Lightness53%
Temperature
Warm ← → Cool94% 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#0f5dfe
RGBrgb(15, 93, 254)
HSLhsl(220, 99%, 53%)
CMYKcmyk(94%, 63%, 0%, 0%)
LABlab(45.8 40.8 -85.0)
LCHlch(45.8 94.3 295.7)
OKLCHoklch(0.547 0.249 262.5)
Decimal1007102
Display P3color(display-p3 0.059 0.365 0.996)

Copy-ready code

/* CSS */
color: #0f5dfe;
background-color: #0f5dfe;
/* Tailwind (arbitrary) */
class="text-[#0f5dfe] bg-[#0f5dfe]"
/* SCSS */
$brand: #0f5dfe;
/* SwiftUI */
Color(red: 0.059, green: 0.365, blue: 0.996)
/* Android */
Color.parseColor("#0f5dfe")
/* Flutter */
Color(0xFF0F5DFE)
/* Python / OpenCV (BGR) */
(254, 93, 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 #0f5dfe · 5.23:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.23:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.02:1
AA fail · AA large pass · AAA fail
Reading the other direction: #0f5dfe as text scores 5.23:1 on white and 4.02:1 on black.

Accessibility — WCAG contrast

Aa
#0f5dfe on white: 5.23:1
AA ✓ pass · AA-large · AAA
Aa
#0f5dfe on black: 4.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0077FF
deuteranopia · #0062FB
tritanopia · #0088A5

Color scale — 50 to 950

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

#F1F5FE
#E3EBFC
#C0D4FB
#8FB4FF
#578EFE
#0f5dfe
#0150F4
#0143CB
#0136A3
#052A75
#031A49
Base = 500Lightest = 50 · #F1F5FEDarkest = 950 · #031A49
:root {
  --brand-50: #F1F5FE;
  --brand-100: #E3EBFC;
  --brand-200: #C0D4FB;
  --brand-300: #8FB4FF;
  --brand-400: #578EFE;
  --brand-500: #0f5dfe;
  --brand-600: #0150F4;
  --brand-700: #0143CB;
  --brand-800: #0136A3;
  --brand-900: #052A75;
  --brand-950: #031A49;
  --brand: #0f5dfe;
  --brand-ink: #ffffff;
}

Colors that work with #0f5dfe

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#C0CEED
Hairlines and dividers
Muted text#4B659B
Captions on the surface
Accent#CC5600
Second voice, not a rival
Dark variant#012A7F
Hover, pressed, headers
Light variant#E6EEFF
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 #0f5dfe

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
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#FEB00F
Analogous left#0FD5FE
Analogous right#380FFE
Split-complement 1#FE380F
Split-complement 2#D5FE0F
Triadic 1#FE0F5D
Triadic 2#5DFE0F
Tetradic#FE0FD5

RGB percentages

Red5.9%
Green36.5%
Blue99.6%

CMYK percentages

Cyan94.1%
Magenta63.4%
Yellow0.0%
Key (black)0.4%

Color previews

#0f5dfe text on a black background

contrast 4.02:1

Card sample

#0f5dfe text on a white background

contrast 5.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f5dfe

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.

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

#0f5dfe, answered

What color is #0f5dfe?

#0f5dfe is a balanced electric blue, closest to Royal Blue (ΔE2000 4.7). It sits at 220° on the hue wheel with 99% saturation and 53% lightness, which reads as cool.

What is the RGB value of #0f5dfe?

rgb(15, 93, 254) — 15 red, 93 green and 254 blue out of 255, or 5.9% / 36.5% / 99.6% by channel.

Is #0f5dfe a light or a dark color?

It is a dark color. Relative luminance is 0.1509 and perceived brightness is 44%, so white text on it reaches 5.23:1.

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

White. It scores 5.23:1 against #0f5dfe, versus 4.02:1 for black — AA at any size.

What is the complementary color of #0f5dfe?

#FEB00F sits directly opposite on the wheel. Softer options are the split-complements #FE380F and #D5FE0F, which give the same contrast with far less vibration.

What colors go well with #0f5dfe?

For interface work: #F4F6FA as the surface, #C0CEED for borders, #4B659B for secondary text, #CC5600 as an accent and #012A7F for hover and pressed states. For a palette, the analogous pair #0FD5FE and #380FFE stays calm, while #FEB00F is the loudest partner.

What is #0f5dfe in CMYK for printing?

cmyk(94%, 63%, 0%, 0%). 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 #0f5dfe warm or cool?

Cool — it scores 94 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #180FFE; nudged cooler, #005FF3.

Work with #0f5dfe in the Color Lab