#0C040C#0C040C

#0C040C is a very dark, muted purple. Relative luminance 0.002; OKLCH L 12.7% C 0.026 H 327.0°. Best body text is #FFFFFF at 20.22:1 contrast (WCAG AA passes).

Color values

HEX#0C040C
RGBrgb(12, 4, 12)
HSLhsl(300, 50%, 3%)
HSVhsv(300, 67%, 5%)
CMYKcmyk(0%, 66.7%, 0%, 95.3%)
CIE-LABlab(1.73, 3.25, -2.32)
CIE-LCHlch(1.73, 3.99, 324.43°)
OKLaboklab(12.74% 0.0221 -0.0143)
OKLCHoklch(12.74% 0.026 327)
XYZxyz(0.2614, 0.1916, 0.3710)
Luminance0.0019 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C040C #040C04
analogous
#08040C #0C040C #0C0408
triadic
#0C040C #0C0C04 #040C0C
tetradic
#0C040C #0C0804 #040C04 #04080C
square
#0C040C #0C0804 #040C04 #04080C
split-complementary
#0C040C #080C04 #040C08
monochromatic
#170817 #170817 #170817 #3A133A #682368

Accessibility & contrast

On white

20.22
#0C040C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#0C040C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C040C
20.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C040C#FFFFFF#000000##FFFFFF
##0C040C1.0020.221.0420.22
#FFFFFF20.221.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04060C
Deuteranopia (green-blind)
#05070C
Tritanopia (blue-blind)
#0D0507
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #0c040c;
/* rgb */ color: rgb(12, 4, 12);
/* oklch */ color: oklch(12.7% 0.026 327.0);
Tailwind
colors: {
  custom: {
    50: '#4c484c',
    500: '#0c040c',
    950: '#000000',
  },
}
SCSS
$custom: #0c040c;
$custom-light: #4c484c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c040c",
  "rgb": {
    "r": 12,
    "g": 4,
    "b": 12
  },
  "hsl": {
    "h": 300,
    "s": 50,
    "l": 3.137
  },
  "oklch": {
    "l": 0.12741,
    "c": 0.0263,
    "h": 327
  },
  "luminance": 0.00192
}

Semantic roles & 50–950 ramp

primary
#0C040C
secondary
#234923
accent
#DA4E4E
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010001
muted
#777777

Preview Lab

Preview with #0C040C

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#0C040C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva