Skip to content

#0f1663

a deep, vivid blue · cool · closest name: Midnight Blue

RGB
15, 22, 99
HSL
235°, 74%, 22%
CMYK
85, 78, 0, 61
Luminance
0.0158

At a glance

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

Hex
#0f1663
Hue
235°
blue
Saturation
74%
vivid
Lightness
22%
deep
Brightness
39%
HSV value
Perceived
15%
weighted brightness
Luminance
0.0158
WCAG relative
Temperature
Cool
86/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
15.97:1
Closest name
Midnight Blue
ΔE2000 2.3
Where it sits
Hue235° of 360°
Saturation74%
Lightness22%
Temperature
Warm ← → Cool86% 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#0f1663
RGBrgb(15, 22, 99)
HSLhsl(235, 74%, 22%)
CMYKcmyk(85%, 78%, 0%, 61%)
LABlab(13.1 27.9 -45.6)
LCHlch(13.1 53.5 301.4)
OKLCHoklch(0.262 0.132 269.5)
Decimal988771
Display P3color(display-p3 0.059 0.086 0.388)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f1663 on white: 15.97:1
AA ✓ pass · AA-large · AAA
Aa
#0f1663 on black: 1.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #002665
deuteranopia · #001E62
tritanopia · #002C3B

Color scale — 50 to 950

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

#F3F4FC
#E7E8F8
#C8CCF3
#9EA4F0
#6D77E9
#3C4AE1
#202FD5
#1B27B1
#151F8E
#0f1663
#0C1140
Base = 900Lightest = 50 · #F3F4FCDarkest = 950 · #0C1140
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E7E8F8;
  --brand-200: #C8CCF3;
  --brand-300: #9EA4F0;
  --brand-400: #6D77E9;
  --brand-500: #3C4AE1;
  --brand-600: #202FD5;
  --brand-700: #1B27B1;
  --brand-800: #151F8E;
  --brand-900: #0f1663;
  --brand-950: #0C1140;
  --brand: #0f1663;
  --brand-ink: #ffffff;
}

Colors that work with #0f1663

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#4B519B
Captions on the surface
Accent#66480D
Second voice, not a rival
Dark variant#11196F
Hover, pressed, headers
Light variant#E9EAFC
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 #0f1663

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#635C0F
Analogous left#0F4063
Analogous right#320F63
Split-complement 1#63320F
Split-complement 2#40630F
Triadic 1#630F16
Triadic 2#16630F
Tetradic#630F40

RGB percentages

Red5.9%
Green8.6%
Blue38.8%

CMYK percentages

Cyan84.8%
Magenta77.8%
Yellow0.0%
Key (black)61.2%

Color previews

#0f1663 text on a black background

contrast 1.32:1

Card sample

#0f1663 text on a white background

contrast 15.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 22, 99, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 22, 99, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f1663;
background: linear-gradient(135deg, #0f1663, #400F63);

Monochromatic scale

Palettes built from #0f1663

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.

#0f1663 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

Converts to four-color process without much drama. Proof it anyway.

#0f1663, answered

What color is #0f1663?

#0f1663 is a deep vivid blue, closest to Midnight Blue (ΔE2000 2.3). It sits at 235° on the hue wheel with 74% saturation and 22% lightness, which reads as cool.

What is the RGB value of #0f1663?

rgb(15, 22, 99) — 15 red, 22 green and 99 blue out of 255, or 5.9% / 8.6% / 38.8% by channel.

Is #0f1663 a light or a dark color?

It is a dark color. Relative luminance is 0.0158 and perceived brightness is 15%, so white text on it reaches 15.97:1.

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

White. It scores 15.97:1 against #0f1663, versus 1.32:1 for black — AAA at any size.

What is the complementary color of #0f1663?

#635C0F sits directly opposite on the wheel. Softer options are the split-complements #63320F and #40630F, which give the same contrast with far less vibration.

What colors go well with #0f1663?

For interface work: #F4F5FA as the surface, #C0C4ED for borders, #4B519B for secondary text, #66480D as an accent and #11196F for hover and pressed states. For a palette, the analogous pair #0F4063 and #320F63 stays calm, while #635C0F is the loudest partner.

What is #0f1663 in CMYK for printing?

cmyk(85%, 78%, 0%, 61%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #0f1663 warm or cool?

Cool — it scores 86 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #270F63; nudged cooler, #0E2C64.

Work with #0f1663 in the Color Lab