Skip to content

#0f2ce2

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

RGB
15, 44, 226
HSL
232°, 88%, 47%
CMYK
93, 81, 0, 11
Luminance
0.0739

At a glance

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

Hex
#0f2ce2
Hue
232°
blue
Saturation
88%
electric
Lightness
47%
balanced
Brightness
89%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0739
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.47:1
Closest name
Blue
ΔE2000 4.5
Where it sits
Hue232° of 360°
Saturation88%
Lightness47%
Temperature
Warm ← → Cool88% 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#0f2ce2
RGBrgb(15, 44, 226)
HSLhsl(232, 88%, 47%)
CMYKcmyk(93%, 81%, 0%, 11%)
LABlab(32.7 59.3 -90.8)
LCHlch(32.7 108.4 303.1)
OKLCHoklch(0.445 0.264 265.3)
Decimal994530
Display P3color(display-p3 0.059 0.173 0.886)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f2ce2 on white: 8.47:1
AA ✓ pass · AA-large · AAA
Aa
#0f2ce2 on black: 2.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0057E7
deuteranopia · #0042DF
tritanopia · #006789

Color scale — 50 to 950

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

#F2F3FD
#E5E8FA
#C4CBF8
#96A3F8
#6175F5
#2D47F1
#0f2ce2
#0D25BF
#0A1E99
#0C196F
#071045
Base = 600Lightest = 50 · #F2F3FDDarkest = 950 · #071045
:root {
  --brand-50: #F2F3FD;
  --brand-100: #E5E8FA;
  --brand-200: #C4CBF8;
  --brand-300: #96A3F8;
  --brand-400: #6175F5;
  --brand-500: #2D47F1;
  --brand-600: #0f2ce2;
  --brand-700: #0D25BF;
  --brand-800: #0A1E99;
  --brand-900: #0C196F;
  --brand-950: #071045;
  --brand: #0f2ce2;
  --brand-ink: #ffffff;
}

Colors that work with #0f2ce2

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#F4F5FA
Tinted page background
Border#C0C6ED
Hairlines and dividers
Muted text#4B569B
Captions on the surface
Accent#C47C08
Second voice, not a rival
Dark variant#081778
Hover, pressed, headers
Light variant#E7EAFD
Selected rows, tints
Dark surface#141624
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 #0f2ce2

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#E2C50F
Analogous left#0F95E2
Analogous right#5C0FE2
Split-complement 1#E25C0F
Split-complement 2#95E20F
Triadic 1#E20F2C
Triadic 2#2CE20F
Tetradic#E20F95

RGB percentages

Red5.9%
Green17.3%
Blue88.6%

CMYK percentages

Cyan93.4%
Magenta80.5%
Yellow0.0%
Key (black)11.4%

Color previews

#0f2ce2 text on a black background

contrast 2.48:1

Card sample

#0f2ce2 text on a white background

contrast 8.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f2ce2

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.

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

#0f2ce2, answered

What color is #0f2ce2?

#0f2ce2 is a balanced electric blue, closest to Blue (ΔE2000 4.5). It sits at 232° on the hue wheel with 88% saturation and 47% lightness, which reads as cool.

What is the RGB value of #0f2ce2?

rgb(15, 44, 226) — 15 red, 44 green and 226 blue out of 255, or 5.9% / 17.3% / 88.6% by channel.

Is #0f2ce2 a light or a dark color?

It is a dark color. Relative luminance is 0.0739 and perceived brightness is 33%, so white text on it reaches 8.47:1.

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

White. It scores 8.47:1 against #0f2ce2, versus 2.48:1 for black — AAA at any size.

What is the complementary color of #0f2ce2?

#E2C50F sits directly opposite on the wheel. Softer options are the split-complements #E25C0F and #95E20F, which give the same contrast with far less vibration.

What colors go well with #0f2ce2?

For interface work: #F4F5FA as the surface, #C0C6ED for borders, #4B569B for secondary text, #C47C08 as an accent and #081778 for hover and pressed states. For a palette, the analogous pair #0F95E2 and #5C0FE2 stays calm, while #E2C50F is the loudest partner.

What is #0f2ce2 in CMYK for printing?

cmyk(93%, 81%, 0%, 11%). 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 #0f2ce2 warm or cool?

Cool — it scores 88 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #400FE2; nudged cooler, #0D4DE5.

Work with #0f2ce2 in the Color Lab