#0D040C#0D040C

#0D040C is a very dark, muted purple. Relative luminance 0.002; OKLCH L 12.9% C 0.027 H 330.5°. Best body text is #FFFFFF at 20.20:1 contrast (WCAG AA passes).

Color values

HEX#0D040C
RGBrgb(13, 4, 12)
HSLhsl(307, 53%, 3%)
HSVhsv(307, 69%, 5%)
CMYKcmyk(0%, 69.2%, 7.7%, 94.9%)
CIE-LABlab(1.80, 3.55, -2.22)
CIE-LCHlch(1.80, 4.18, 328.03°)
OKLaboklab(12.92% 0.0238 -0.0135)
OKLCHoklch(12.92% 0.027 330.5)
XYZxyz(0.2758, 0.1990, 0.3716)
Luminance0.0020 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D040C #040D05
analogous
#09040D #0D040C #0D0407
triadic
#0D040C #0C0D04 #040C0D
tetradic
#0D040C #0D0904 #040D05 #04070D
square
#0D040C #0D0904 #040D05 #04070D
split-complementary
#0D040C #070D04 #040D09
monochromatic
#170716 #170716 #170716 #3C1237 #6B2162

Accessibility & contrast

On white

20.20
#0D040C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D040C
20.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D040C#FFFFFF#000000##FFFFFF
##0D040C1.0020.201.0420.20
#FFFFFF20.201.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04060C
Deuteranopia (green-blind)
#06070C
Tritanopia (blue-blind)
#0E0407
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #0d040c;
/* rgb */ color: rgb(13, 4, 12);
/* oklch */ color: oklch(12.9% 0.027 330.5);
Tailwind
colors: {
  custom: {
    50: '#4c484c',
    500: '#0d040c',
    950: '#000000',
  },
}
SCSS
$custom: #0d040c;
$custom-light: #4c484c;
$custom-dark: #000000;
JSON
{
  "hex": "#0d040c",
  "rgb": {
    "r": 13,
    "g": 4,
    "b": 12
  },
  "hsl": {
    "h": 306.667,
    "s": 52.941,
    "l": 3.333
  },
  "oklch": {
    "l": 0.12918,
    "c": 0.02734,
    "h": 330.5
  },
  "luminance": 0.00199
}

Semantic roles & 50–950 ramp

primary
#0D040C
secondary
#224B27
accent
#DC5C4B
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010001
muted
#777777

Preview Lab

Preview with #0D040C

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

Preview Lab → · Contrast checker → · Palette generator →

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