Skip to content

#0f032f

a deep, electric violet · cool · closest name: Midnight Blue

RGB
15, 3, 47
HSL
256°, 88%, 10%
CMYK
68, 94, 0, 82
Luminance
0.0037

At a glance

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

Hex
#0f032f
Hue
256°
violet
Saturation
88%
electric
Lightness
10%
deep
Brightness
18%
HSV value
Perceived
7%
weighted brightness
Luminance
0.0037
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Electric
Best ink
White
19.55:1
Closest name
Midnight Blue
ΔE2000 12.4
Where it sits
Hue256° of 360°
Saturation88%
Lightness10%
Temperature
Warm ← → Cool74% 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#0f032f
RGBrgb(15, 3, 47)
HSLhsl(256, 88%, 10%)
CMYKcmyk(68%, 94%, 0%, 82%)
LABlab(3.4 15.9 -25.1)
LCHlch(3.4 29.7 302.4)
OKLCHoklch(0.165 0.083 287.4)
Decimal983855
Display P3color(display-p3 0.059 0.012 0.184)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f032f on white: 19.55:1
AA ✓ pass · AA-large · AAA
Aa
#0f032f on black: 1.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #000D30
deuteranopia · #000B2E
tritanopia · #030F18

Color scale — 50 to 950

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

#F5F2FD
#EBE5FA
#D2C4F8
#B196F8
#8961F5
#622CF2
#4A0FE6
#3D0CC0
#310A99
#270C6F
#0f032f
Base = 950Lightest = 50 · #F5F2FDDarkest = 950 · #0f032f
:root {
  --brand-50: #F5F2FD;
  --brand-100: #EBE5FA;
  --brand-200: #D2C4F8;
  --brand-300: #B196F8;
  --brand-400: #8961F5;
  --brand-500: #622CF2;
  --brand-600: #4A0FE6;
  --brand-700: #3D0CC0;
  --brand-800: #310A99;
  --brand-900: #270C6F;
  --brand-950: #0f032f;
  --brand: #0f032f;
  --brand-ink: #ffffff;
}

Colors that work with #0f032f

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#F6F4FA
Tinted page background
Border#CCC0ED
Hairlines and dividers
Muted text#614B9B
Captions on the surface
Accent#2F3002
Second voice, not a rival
Dark variant#260878
Hover, pressed, headers
Light variant#EDE7FD
Selected rows, tints
Dark surface#181424
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 #0f032f

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#232F03
Analogous left#030D2F
Analogous right#25032F
Split-complement 1#2F2503
Split-complement 2#0D2F03
Triadic 1#2F0F03
Triadic 2#032F0F
Tetradic#2F030D

RGB percentages

Red5.9%
Green1.2%
Blue18.4%

CMYK percentages

Cyan68.1%
Magenta93.6%
Yellow0.0%
Key (black)81.6%

Color previews

#0f032f text on a black background

contrast 1.07:1

Card sample

#0f032f text on a white background

contrast 19.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f032f

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.

#0f032f in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#0f032f, answered

What color is #0f032f?

#0f032f is a deep electric violet, closest to Midnight Blue (ΔE2000 12.4). It sits at 256° on the hue wheel with 88% saturation and 10% lightness, which reads as cool.

What is the RGB value of #0f032f?

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

Is #0f032f a light or a dark color?

It is a dark color. Relative luminance is 0.0037 and perceived brightness is 7%, so white text on it reaches 19.55:1.

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

White. It scores 19.55:1 against #0f032f, versus 1.07:1 for black — AAA at any size.

What is the complementary color of #0f032f?

#232F03 sits directly opposite on the wheel. Softer options are the split-complements #2F2503 and #0D2F03, which give the same contrast with far less vibration.

What colors go well with #0f032f?

For interface work: #F6F4FA as the surface, #CCC0ED for borders, #614B9B for secondary text, #2F3002 as an accent and #260878 for hover and pressed states. For a palette, the analogous pair #030D2F and #25032F stays calm, while #232F03 is the loudest partner.

What is #0f032f in CMYK for printing?

cmyk(68%, 94%, 0%, 82%). 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 #0f032f warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1F032F; nudged cooler, #02072F.

Work with #0f032f in the Color Lab