#0D040F#0D040F

#0D040F is a very dark, muted purple. Relative luminance 0.002; OKLCH L 13.1% C 0.032 H 321.1°. Best body text is #FFFFFF at 20.17:1 contrast (WCAG AA passes).

Color values

HEX#0D040F
RGBrgb(13, 4, 15)
HSLhsl(289, 58%, 4%)
HSVhsv(289, 73%, 6%)
CMYKcmyk(13.3%, 73.3%, 0%, 94.1%)
CIE-LABlab(1.87, 4.05, -3.59)
CIE-LCHlch(1.87, 5.41, 318.48°)
OKLaboklab(13.12% 0.0247 -0.0199)
OKLCHoklch(13.12% 0.032 321.1)
XYZxyz(0.2956, 0.2069, 0.4762)
Luminance0.0021 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D040F #060F04
analogous
#07040F #0D040F #0F040B
triadic
#0D040F #0F0D04 #040F0D
tetradic
#0D040F #0F0704 #060F04 #040B0F
square
#0D040F #0F0704 #060F04 #040B0F
split-complementary
#0D040F #0B0F04 #040F07
monochromatic
#150618 #150618 #150618 #37113F #611E70

Accessibility & contrast

On white

20.17
#0D040F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D040F
20.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D040F#FFFFFF#000000##FFFFFF
##0D040F1.0020.171.0420.17
#FFFFFF20.171.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03060F
Deuteranopia (green-blind)
#05070F
Tritanopia (blue-blind)
#0D0508
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #0d040f;
/* rgb */ color: rgb(13, 4, 15);
/* oklch */ color: oklch(13.1% 0.032 321.1);
Tailwind
colors: {
  custom: {
    50: '#4c484e',
    500: '#0d040f',
    950: '#000000',
  },
}
SCSS
$custom: #0d040f;
$custom-light: #4c484e;
$custom-dark: #000000;
JSON
{
  "hex": "#0d040f",
  "rgb": {
    "r": 13,
    "g": 4,
    "b": 15
  },
  "hsl": {
    "h": 289.091,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.13124,
    "c": 0.03172,
    "h": 321.1
  },
  "luminance": 0.00207
}

Semantic roles & 50–950 ramp

primary
#0D040F
secondary
#294E21
accent
#E14763
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010001
muted
#777777

Preview Lab

Preview with #0D040F

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

Preview Lab → · Contrast checker → · Palette generator →

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