Skip to content

#0f2da2

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

RGB
15, 45, 162
HSL
228°, 83%, 35%
CMYK
91, 72, 0, 37
Luminance
0.0459

At a glance

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

Hex
#0f2da2
Hue
228°
blue
Saturation
83%
electric
Lightness
35%
dark
Brightness
64%
HSV value
Perceived
26%
weighted brightness
Luminance
0.0459
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Electric
Best ink
White
10.95:1
Closest name
Medium Blue
ΔE2000 8.1
Where it sits
Hue228° of 360°
Saturation83%
Lightness35%
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#0f2da2
RGBrgb(15, 45, 162)
HSLhsl(228, 83%, 35%)
CMYKcmyk(91%, 72%, 0%, 37%)
LABlab(25.5 37.0 -65.0)
LCHlch(25.5 74.7 299.6)
OKLCHoklch(0.373 0.189 265.3)
Decimal994722
Display P3color(display-p3 0.059 0.176 0.635)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f2da2 on white: 10.95:1
AA ✓ pass · AA-large · AAA
Aa
#0f2da2 on black: 1.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0044A6
deuteranopia · #0035A0
tritanopia · #004F64

Color scale — 50 to 950

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

#F2F4FC
#E6EAFA
#C6CFF6
#98ABF6
#6581F1
#3257EC
#153EE0
#1134BB
#0f2da2
#0E216C
#091543
Base = 800Lightest = 50 · #F2F4FCDarkest = 950 · #091543
:root {
  --brand-50: #F2F4FC;
  --brand-100: #E6EAFA;
  --brand-200: #C6CFF6;
  --brand-300: #98ABF6;
  --brand-400: #6581F1;
  --brand-500: #3257EC;
  --brand-600: #153EE0;
  --brand-700: #1134BB;
  --brand-800: #0f2da2;
  --brand-900: #0E216C;
  --brand-950: #091543;
  --brand: #0f2da2;
  --brand-ink: #ffffff;
}

Colors that work with #0f2da2

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#A6600B
Second voice, not a rival
Dark variant#0B2075
Hover, pressed, headers
Light variant#E8ECFD
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 #0f2da2

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#A2840F
Analogous left#0F76A2
Analogous right#3B0FA2
Split-complement 1#A23B0F
Split-complement 2#76A20F
Triadic 1#A20F2D
Triadic 2#2DA20F
Tetradic#A20F76

RGB percentages

Red5.9%
Green17.6%
Blue63.5%

CMYK percentages

Cyan90.7%
Magenta72.2%
Yellow0.0%
Key (black)36.5%

Color previews

#0f2da2 text on a black background

contrast 1.92:1

Card sample

#0f2da2 text on a white background

contrast 10.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 45, 162, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 45, 162, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f2da2;
background: linear-gradient(135deg, #0f2da2, #530FA2);

Monochromatic scale

Palettes built from #0f2da2

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.

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

#0f2da2, answered

What color is #0f2da2?

#0f2da2 is a dark electric blue, closest to Medium Blue (ΔE2000 8.1). It sits at 228° on the hue wheel with 83% saturation and 35% lightness, which reads as cool.

What is the RGB value of #0f2da2?

rgb(15, 45, 162) — 15 red, 45 green and 162 blue out of 255, or 5.9% / 17.6% / 63.5% by channel.

Is #0f2da2 a light or a dark color?

It is a dark color. Relative luminance is 0.0459 and perceived brightness is 26%, so white text on it reaches 10.95:1.

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

White. It scores 10.95:1 against #0f2da2, versus 1.92:1 for black — AAA at any size.

What is the complementary color of #0f2da2?

#A2840F sits directly opposite on the wheel. Softer options are the split-complements #A23B0F and #76A20F, which give the same contrast with far less vibration.

What colors go well with #0f2da2?

For interface work: #F4F6FA as the surface, #C0C9ED for borders, #4B5B9B for secondary text, #A6600B as an accent and #0B2075 for hover and pressed states. For a palette, the analogous pair #0F76A2 and #3B0FA2 stays calm, while #A2840F is the loudest partner.

What is #0f2da2 in CMYK for printing?

cmyk(91%, 72%, 0%, 37%). 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 #0f2da2 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 #270FA2; nudged cooler, #0D43A4.

Work with #0f2da2 in the Color Lab