#0A040F#0A040F

#0A040F is a very dark, muted violet. Relative luminance 0.002; OKLCH L 12.6% C 0.030 H 310.7°. Best body text is #FFFFFF at 20.25:1 contrast (WCAG AA passes).

Color values

HEX#0A040F
RGBrgb(10, 4, 15)
HSLhsl(273, 58%, 4%)
HSVhsv(273, 73%, 6%)
CMYKcmyk(33.3%, 73.3%, 0%, 94.1%)
CIE-LABlab(1.68, 3.20, -3.89)
CIE-LCHlch(1.68, 5.04, 309.45°)
OKLaboklab(12.62% 0.0193 -0.0225)
OKLCHoklch(12.62% 0.03 310.7)
XYZxyz(0.2548, 0.1859, 0.4743)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A040F #090F04
analogous
#04040F #0A040F #0F040E
triadic
#0A040F #0F0A04 #040F0A
tetradic
#0A040F #0F0404 #090F04 #040E0F
square
#0A040F #0F0404 #090F04 #040E0F
split-complementary
#0A040F #0E0F04 #040F04
monochromatic
#100618 #100618 #100618 #2A113F #4A1E70

Accessibility & contrast

On white

20.25
#0A040F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0A040F
20.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A040F#FFFFFF#000000##FFFFFF
##0A040F1.0020.251.0420.25
#FFFFFF20.251.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03060F
Deuteranopia (green-blind)
#04060F
Tritanopia (blue-blind)
#090508
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #0a040f;
/* rgb */ color: rgb(10, 4, 15);
/* oklch */ color: oklch(12.6% 0.030 310.7);
Tailwind
colors: {
  custom: {
    50: '#4b484e',
    500: '#0a040f',
    950: '#000000',
  },
}
SCSS
$custom: #0a040f;
$custom-light: #4b484e;
$custom-dark: #000000;
JSON
{
  "hex": "#0a040f",
  "rgb": {
    "r": 10,
    "g": 4,
    "b": 15
  },
  "hsl": {
    "h": 272.727,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.12623,
    "c": 0.02963,
    "h": 310.7
  },
  "luminance": 0.00186
}

Semantic roles & 50–950 ramp

primary
#0A040F
secondary
#354E21
accent
#E1478D
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010001
muted
#777777

Preview Lab

Preview with #0A040F

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

Preview Lab → · Contrast checker → · Palette generator →

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