Skip to content

#0f3ef1

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

RGB
15, 62, 241
HSL
228°, 89%, 50%
CMYK
94, 74, 0, 6
Luminance
0.0990

At a glance

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

Hex
#0f3ef1
Hue
228°
blue
Saturation
89%
electric
Lightness
50%
balanced
Brightness
95%
HSV value
Perceived
37%
weighted brightness
Luminance
0.0990
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.05:1
Closest name
Blue
ΔE2000 7.5
Where it sits
Hue228° of 360°
Saturation89%
Lightness50%
Temperature
Warm ← → Cool90% 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#0f3ef1
RGBrgb(15, 62, 241)
HSLhsl(228, 89%, 50%)
CMYKcmyk(94%, 74%, 0%, 6%)
LABlab(37.6 54.8 -91.0)
LCHlch(37.6 106.2 301.0)
OKLCHoklch(0.485 0.265 264.7)
Decimal999153
Display P3color(display-p3 0.059 0.243 0.945)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f3ef1 on white: 7.05:1
AA ✓ pass · AA-large · AAA
Aa
#0f3ef1 on black: 2.98:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0063F6
deuteranopia · #004EEE
tritanopia · #007495

Color scale — 50 to 950

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

#F2F4FD
#E5E9FB
#C4CFF8
#95AAF9
#607FF6
#2B55F3
#0f3ef1
#0B31C1
#09279A
#0B206F
#071446
Base = 600Lightest = 50 · #F2F4FDDarkest = 950 · #071446
:root {
  --brand-50: #F2F4FD;
  --brand-100: #E5E9FB;
  --brand-200: #C4CFF8;
  --brand-300: #95AAF9;
  --brand-400: #607FF6;
  --brand-500: #2B55F3;
  --brand-600: #0f3ef1;
  --brand-700: #0B31C1;
  --brand-800: #09279A;
  --brand-900: #0B206F;
  --brand-950: #071446;
  --brand: #0f3ef1;
  --brand-ink: #ffffff;
}

Colors that work with #0f3ef1

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#C0C9ED
Hairlines and dividers
Muted text#4B5B9B
Captions on the surface
Accent#C56E07
Second voice, not a rival
Dark variant#071F78
Hover, pressed, headers
Light variant#E7ECFE
Selected rows, tints
Dark surface#141724
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 #0f3ef1

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
  • Text on black or near-black surfaces
  • 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#F1C20F
Analogous left#0FAFF1
Analogous right#510FF1
Split-complement 1#F1510F
Split-complement 2#AFF10F
Triadic 1#F10F3E
Triadic 2#3EF10F
Tetradic#F10FAF

RGB percentages

Red5.9%
Green24.3%
Blue94.5%

CMYK percentages

Cyan93.8%
Magenta74.3%
Yellow0.0%
Key (black)5.5%

Color previews

#0f3ef1 text on a black background

contrast 2.98:1

Card sample

#0f3ef1 text on a white background

contrast 7.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f3ef1

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.

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

#0f3ef1, answered

What color is #0f3ef1?

#0f3ef1 is a balanced electric blue, closest to Blue (ΔE2000 7.5). It sits at 228° on the hue wheel with 89% saturation and 50% lightness, which reads as cool.

What is the RGB value of #0f3ef1?

rgb(15, 62, 241) — 15 red, 62 green and 241 blue out of 255, or 5.9% / 24.3% / 94.5% by channel.

Is #0f3ef1 a light or a dark color?

It is a dark color. Relative luminance is 0.0990 and perceived brightness is 37%, so white text on it reaches 7.05:1.

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

White. It scores 7.05:1 against #0f3ef1, versus 2.98:1 for black — AAA at any size.

What is the complementary color of #0f3ef1?

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

What colors go well with #0f3ef1?

For interface work: #F4F6FA as the surface, #C0C9ED for borders, #4B5B9B for secondary text, #C56E07 as an accent and #071F78 for hover and pressed states. For a palette, the analogous pair #0FAFF1 and #510FF1 stays calm, while #F1C20F is the loudest partner.

What is #0f3ef1 in CMYK for printing?

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

Cool — it scores 90 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #330FF1; nudged cooler, #0C59F4.

Work with #0f3ef1 in the Color Lab