Skip to content

#0f22cf

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

RGB
15, 34, 207
HSL
234°, 87%, 44%
CMYK
93, 84, 0, 19
Luminance
0.0575

At a glance

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

Hex
#0f22cf
Hue
234°
blue
Saturation
87%
electric
Lightness
44%
dark
Brightness
81%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0575
WCAG relative
Temperature
Cool
87/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.77:1
Closest name
Medium Blue
ΔE2000 3.8
Where it sits
Hue234° of 360°
Saturation87%
Lightness44%
Temperature
Warm ← → Cool87% 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#0f22cf
RGBrgb(15, 34, 207)
HSLhsl(234, 87%, 44%)
CMYKcmyk(93%, 84%, 0%, 19%)
LABlab(28.8 58.0 -86.3)
LCHlch(28.8 104.0 303.9)
OKLCHoklch(0.411 0.251 265.6)
Decimal991951
Display P3color(display-p3 0.059 0.133 0.812)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f22cf on white: 9.77:1
AA ✓ pass · AA-large · AAA
Aa
#0f22cf on black: 2.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004DD4
deuteranopia · #003ACC
tritanopia · #005C7C

Color scale — 50 to 950

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

#F2F3FD
#E5E7FA
#C4C9F7
#96A0F7
#6270F4
#2E41F0
#1125E4
#0f22cf
#0B1998
#0C166E
#080E45
Base = 700Lightest = 50 · #F2F3FDDarkest = 950 · #080E45
:root {
  --brand-50: #F2F3FD;
  --brand-100: #E5E7FA;
  --brand-200: #C4C9F7;
  --brand-300: #96A0F7;
  --brand-400: #6270F4;
  --brand-500: #2E41F0;
  --brand-600: #1125E4;
  --brand-700: #0f22cf;
  --brand-800: #0B1998;
  --brand-900: #0C166E;
  --brand-950: #080E45;
  --brand: #0f22cf;
  --brand-ink: #ffffff;
}

Colors that work with #0f22cf

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#C0C4ED
Hairlines and dividers
Muted text#4B529B
Captions on the surface
Accent#C2820A
Second voice, not a rival
Dark variant#091377
Hover, pressed, headers
Light variant#E7E9FD
Selected rows, tints
Dark surface#141524
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 #0f22cf

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#CFBC0F
Analogous left#0F82CF
Analogous right#5C0FCF
Split-complement 1#CF5C0F
Split-complement 2#82CF0F
Triadic 1#CF0F22
Triadic 2#22CF0F
Tetradic#CF0F82

RGB percentages

Red5.9%
Green13.3%
Blue81.2%

CMYK percentages

Cyan92.8%
Magenta83.6%
Yellow0.0%
Key (black)18.8%

Color previews

#0f22cf text on a black background

contrast 2.15:1

Card sample

#0f22cf text on a white background

contrast 9.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f22cf

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.

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

#0f22cf, answered

What color is #0f22cf?

#0f22cf is a dark electric blue, closest to Medium Blue (ΔE2000 3.8). It sits at 234° on the hue wheel with 87% saturation and 44% lightness, which reads as cool.

What is the RGB value of #0f22cf?

rgb(15, 34, 207) — 15 red, 34 green and 207 blue out of 255, or 5.9% / 13.3% / 81.2% by channel.

Is #0f22cf a light or a dark color?

It is a dark color. Relative luminance is 0.0575 and perceived brightness is 29%, so white text on it reaches 9.77:1.

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

White. It scores 9.77:1 against #0f22cf, versus 2.15:1 for black — AAA at any size.

What is the complementary color of #0f22cf?

#CFBC0F sits directly opposite on the wheel. Softer options are the split-complements #CF5C0F and #82CF0F, which give the same contrast with far less vibration.

What colors go well with #0f22cf?

For interface work: #F4F5FA as the surface, #C0C4ED for borders, #4B529B for secondary text, #C2820A as an accent and #091377 for hover and pressed states. For a palette, the analogous pair #0F82CF and #5C0FCF stays calm, while #CFBC0F is the loudest partner.

What is #0f22cf in CMYK for printing?

cmyk(93%, 84%, 0%, 19%). 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 #0f22cf warm or cool?

Cool — it scores 87 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #420FCF; nudged cooler, #0D45D1.

Work with #0f22cf in the Color Lab