Skip to content

#0c080d

a deep, soft violet · neutral · closest name: Black

RGB
12, 8, 13
HSL
288°, 24%, 4%
CMYK
8, 39, 0, 95
Luminance
0.0028

At a glance

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

Hex
#0c080d
Hue
288°
violet
Saturation
24%
soft
Lightness
4%
deep
Brightness
5%
HSV value
Perceived
4%
weighted brightness
Luminance
0.0028
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Violet
Tone
Soft
Best ink
White
19.88:1
Closest name
Black
ΔE2000 3.3
Where it sits
Hue288° of 360°
Saturation24%
Lightness4%
Temperature
Warm ← → Cool55% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#0c080d
RGBrgb(12, 8, 13)
HSLhsl(288, 24%, 4%)
CMYKcmyk(8%, 39%, 0%, 95%)
LABlab(2.5 1.8 -1.6)
LCHlch(2.5 2.4 318.3)
OKLCHoklch(0.142 0.013 319.6)
Decimal788493
Display P3color(display-p3 0.047 0.031 0.051)

Copy-ready code

/* CSS */
color: #0c080d;
background-color: #0c080d;
/* Tailwind (arbitrary) */
class="text-[#0c080d] bg-[#0c080d]"
/* SCSS */
$brand: #0c080d;
/* SwiftUI */
Color(red: 0.047, green: 0.031, blue: 0.051)
/* Android */
Color.parseColor("#0c080d")
/* Flutter */
Color(0xFF0C080D)
/* Python / OpenCV (BGR) */
(13, 8, 12)

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 #0c080d · 19.88:1
Use #ffffffAAA at every size.
Aa
White text · 19.88:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.06:1
AA fail · AA large fail · AAA fail
Reading the other direction: #0c080d as text scores 19.88:1 on white and 1.06:1 on black.

Accessibility — WCAG contrast

Aa
#0c080d on white: 19.88:1
AA ✓ pass · AA-large · AAA
Aa
#0c080d on black: 1.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #08090D
deuteranopia · #08090D
tritanopia · #0C080A

Color scale — 50 to 950

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

#F8F6F9
#F1EDF3
#E2D7E5
#CFBAD4
#B797BF
#9F74AA
#8C5D98
#754E7E
#5D3E65
#45304B
#0c080d
Base = 950Lightest = 50 · #F8F6F9Darkest = 950 · #0c080d
:root {
  --brand-50: #F8F6F9;
  --brand-100: #F1EDF3;
  --brand-200: #E2D7E5;
  --brand-300: #CFBAD4;
  --brand-400: #B797BF;
  --brand-500: #9F74AA;
  --brand-600: #8C5D98;
  --brand-700: #754E7E;
  --brand-800: #5D3E65;
  --brand-900: #45304B;
  --brand-950: #0c080d;
  --brand: #0c080d;
  --brand-ink: #ffffff;
}

Colors that work with #0c080d

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#F8F6F9
Tinted page background
Border#DCCCE0
Hairlines and dividers
Muted text#83578E
Captions on the surface
Accent#0A0D08
Second voice, not a rival
Dark variant#49314F
Hover, pressed, headers
Light variant#F4EFF5
Selected rows, tints
Dark surface#201523
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 #0c080d

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#090D08
Analogous left#09080D
Analogous right#0D080B
Split-complement 1#0B0D08
Split-complement 2#080D09
Triadic 1#0D0C08
Triadic 2#080D0C
Tetradic#0D0908

RGB percentages

Red4.7%
Green3.1%
Blue5.1%

CMYK percentages

Cyan7.7%
Magenta38.5%
Yellow0.0%
Key (black)94.9%

Color previews

#0c080d text on a black background

contrast 1.06:1

Card sample

#0c080d text on a white background

contrast 19.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0c080d

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.

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

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

#0c080d, answered

What color is #0c080d?

#0c080d is a deep soft violet, closest to Black (ΔE2000 3.3). It sits at 288° on the hue wheel with 24% saturation and 4% lightness, which reads as neutral.

What is the RGB value of #0c080d?

rgb(12, 8, 13) — 12 red, 8 green and 13 blue out of 255, or 4.7% / 3.1% / 5.1% by channel.

Is #0c080d a light or a dark color?

It is a dark color. Relative luminance is 0.0028 and perceived brightness is 4%, so white text on it reaches 19.88:1.

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

White. It scores 19.88:1 against #0c080d, versus 1.06:1 for black — AAA at any size.

What is the complementary color of #0c080d?

#090D08 sits directly opposite on the wheel. Softer options are the split-complements #0B0D08 and #080D09, which give the same contrast with far less vibration.

What colors go well with #0c080d?

For interface work: #F8F6F9 as the surface, #DCCCE0 for borders, #83578E for secondary text, #0A0D08 as an accent and #49314F for hover and pressed states. For a palette, the analogous pair #09080D and #0D080B stays calm, while #090D08 is the loudest partner.

What is #0c080d in CMYK for printing?

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

Is #0c080d warm or cool?

Neutral — it scores 55 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0D080C; nudged cooler, #0A080D.

Work with #0c080d in the Color Lab