Skip to content

#0f2f3f

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

RGB
15, 47, 63
HSL
200°, 62%, 15%
CMYK
76, 25, 0, 75
Luminance
0.0249

At a glance

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

Hex
#0f2f3f
Hue
200°
blue
Saturation
62%
vivid
Lightness
15%
deep
Brightness
25%
HSV value
Perceived
17%
weighted brightness
Luminance
0.0249
WCAG relative
Temperature
Cool
96/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
14.01:1
Closest name
Midnight Blue
ΔE2000 11.5
Where it sits
Hue200° of 360°
Saturation62%
Lightness15%
Temperature
Warm ← → Cool96% 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#0f2f3f
RGBrgb(15, 47, 63)
HSLhsl(200, 62%, 15%)
CMYKcmyk(76%, 25%, 0%, 75%)
LABlab(17.9 -5.5 -13.5)
LCHlch(17.9 14.6 247.7)
OKLCHoklch(0.290 0.047 233.5)
Decimal995135
Display P3color(display-p3 0.059 0.184 0.247)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f2f3f on white: 14.01:1
AA ✓ pass · AA-large · AAA
Aa
#0f2f3f on black: 1.50:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #272E40
deuteranopia · #212A3F
tritanopia · #003334

Color scale — 50 to 950

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

#F4F9FB
#E8F2F7
#CCE4F0
#A4D2E9
#77BCDF
#4AA6D4
#2F93C6
#277BA5
#1F6284
#1B4960
#0f2f3f
Base = 950Lightest = 50 · #F4F9FBDarkest = 950 · #0f2f3f
:root {
  --brand-50: #F4F9FB;
  --brand-100: #E8F2F7;
  --brand-200: #CCE4F0;
  --brand-300: #A4D2E9;
  --brand-400: #77BCDF;
  --brand-500: #4AA6D4;
  --brand-600: #2F93C6;
  --brand-700: #277BA5;
  --brand-800: #1F6284;
  --brand-900: #1B4960;
  --brand-950: #0f2f3f;
  --brand: #0f2f3f;
  --brand-ink: #ffffff;
}

Colors that work with #0f2f3f

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#F4F8FA
Tinted page background
Border#C0DEED
Hairlines and dividers
Muted text#4B809B
Captions on the surface
Accent#41120D
Second voice, not a rival
Dark variant#194D67
Hover, pressed, headers
Light variant#EAF5FA
Selected rows, tints
Dark surface#141F24
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 #0f2f3f

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#3F1F0F
Analogous left#0F3F37
Analogous right#0F173F
Split-complement 1#3F0F17
Split-complement 2#3F370F
Triadic 1#3F0F2F
Triadic 2#2F3F0F
Tetradic#370F3F

RGB percentages

Red5.9%
Green18.4%
Blue24.7%

CMYK percentages

Cyan76.2%
Magenta25.4%
Yellow0.0%
Key (black)75.3%

Color previews

#0f2f3f text on a black background

contrast 1.50:1

Card sample

#0f2f3f text on a white background

contrast 14.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 47, 63, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 47, 63, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f2f3f;
background: linear-gradient(135deg, #0f2f3f, #0F0F3F);

Monochromatic scale

Palettes built from #0f2f3f

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.

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

#0f2f3f, answered

What color is #0f2f3f?

#0f2f3f is a deep vivid blue, closest to Midnight Blue (ΔE2000 11.5). It sits at 200° on the hue wheel with 62% saturation and 15% lightness, which reads as cool.

What is the RGB value of #0f2f3f?

rgb(15, 47, 63) — 15 red, 47 green and 63 blue out of 255, or 5.9% / 18.4% / 24.7% by channel.

Is #0f2f3f a light or a dark color?

It is a dark color. Relative luminance is 0.0249 and perceived brightness is 17%, so white text on it reaches 14.01:1.

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

White. It scores 14.01:1 against #0f2f3f, versus 1.50:1 for black — AAA at any size.

What is the complementary color of #0f2f3f?

#3F1F0F sits directly opposite on the wheel. Softer options are the split-complements #3F0F17 and #3F370F, which give the same contrast with far less vibration.

What colors go well with #0f2f3f?

For interface work: #F4F8FA as the surface, #C0DEED for borders, #4B809B for secondary text, #41120D as an accent and #194D67 for hover and pressed states. For a palette, the analogous pair #0F3F37 and #0F173F stays calm, while #3F1F0F is the loudest partner.

What is #0f2f3f in CMYK for printing?

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

Is #0f2f3f warm or cool?

Cool — it scores 96 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0F3F3D; nudged cooler, #0E2840.

Work with #0f2f3f in the Color Lab