#0A040E#0A040E

#0A040E is a very dark, muted violet. Relative luminance 0.002; OKLCH L 12.5% C 0.028 H 313.2°. Best body text is #FFFFFF at 20.26:1 contrast (WCAG AA passes).

Color values

HEX#0A040E
RGBrgb(10, 4, 14)
HSLhsl(276, 56%, 4%)
HSVhsv(276, 71%, 5%)
CMYKcmyk(28.6%, 71.4%, 0%, 94.5%)
CIE-LABlab(1.65, 3.02, -3.41)
CIE-LCHlch(1.65, 4.56, 311.56°)
OKLaboklab(12.55% 0.0191 -0.0203)
OKLCHoklch(12.55% 0.028 313.2)
XYZxyz(0.2478, 0.1831, 0.4377)
Luminance0.0018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A040E #080E04
analogous
#05040E #0A040E #0E040D
triadic
#0A040E #0E0A04 #040E0A
tetradic
#0A040E #0E0504 #080E04 #040D0E
square
#0A040E #0E0504 #080E04 #040D0E
split-complementary
#0A040E #0D0E04 #040E05
monochromatic
#110718 #110718 #110718 #2C123E #4E1F6D

Accessibility & contrast

On white

20.26
#0A040E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0A040E
20.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A040E#FFFFFF#000000##FFFFFF
##0A040E1.0020.261.0420.26
#FFFFFF20.261.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03060E
Deuteranopia (green-blind)
#04060E
Tritanopia (blue-blind)
#0A0507
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #0a040e;
/* rgb */ color: rgb(10, 4, 14);
/* oklch */ color: oklch(12.5% 0.028 313.2);
Tailwind
colors: {
  custom: {
    50: '#4b484d',
    500: '#0a040e',
    950: '#000000',
  },
}
SCSS
$custom: #0a040e;
$custom-light: #4b484d;
$custom-dark: #000000;
JSON
{
  "hex": "#0a040e",
  "rgb": {
    "r": 10,
    "g": 4,
    "b": 14
  },
  "hsl": {
    "h": 276,
    "s": 55.556,
    "l": 3.529
  },
  "oklch": {
    "l": 0.12546,
    "c": 0.02788,
    "h": 313.2
  },
  "luminance": 0.00183
}

Semantic roles & 50–950 ramp

primary
#0A040E
secondary
#334C22
accent
#DF4985
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010001
muted
#777777

Preview Lab

Preview with #0A040E

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

Preview Lab → · Contrast checker → · Palette generator →

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