#040010#040010

#040010 is a very dark, muted violet. Relative luminance 0.001; OKLCH L 9.3% C 0.051 H 295.5°. Best body text is #FFFFFF at 20.74:1 contrast (WCAG AA passes).

Color values

HEX#040010
RGBrgb(4, 0, 16)
HSLhsl(255, 100%, 3%)
HSVhsv(255, 100%, 6%)
CMYKcmyk(75%, 100%, 0%, 93.7%)
CIE-LABlab(0.57, 3.42, -6.09)
CIE-LCHlch(0.57, 6.99, 299.32°)
OKLaboklab(9.28% 0.0219 -0.0458)
OKLCHoklch(9.28% 0.051 295.5)
XYZxyz(0.1436, 0.0632, 0.4947)
Luminance0.0006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040010 #0C1000
analogous
#000410 #040010 #0C0010
triadic
#040010 #100400 #001004
tetradic
#040010 #100004 #0C1000 #00100C
square
#040010 #100004 #0C1000 #00100C
split-complementary
#040010 #100C00 #041000
monochromatic
#08001F #08001F #08001F #13004D #23008A

Accessibility & contrast

On white

20.74
#040010 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.01
#040010 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040010
20.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040010#FFFFFF#000000##FFFFFF
##0400101.0020.741.0120.74
#FFFFFF20.741.0021.001.00
#0000001.0121.001.0021.00
##FFFFFF20.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000211
Deuteranopia (green-blind)
#000210
Tritanopia (blue-blind)
#020205
Achromatopsia (no color)
#020202

Design tokens & code

CSS
--color: #040010;
/* rgb */ color: rgb(4, 0, 16);
/* oklch */ color: oklch(9.3% 0.051 295.5);
Tailwind
colors: {
  custom: {
    50: '#48474e',
    500: '#040010',
    950: '#000000',
  },
}
SCSS
$custom: #040010;
$custom-light: #48474e;
$custom-dark: #000000;
JSON
{
  "hex": "#040010",
  "rgb": {
    "r": 4,
    "g": 0,
    "b": 16
  },
  "hsl": {
    "h": 255,
    "s": 100,
    "l": 3.137
  },
  "oklch": {
    "l": 0.09275,
    "c": 0.05077,
    "h": 295.5
  },
  "luminance": 0.00063
}

Semantic roles & 50–950 ramp

primary
#040010
secondary
#495C10
accent
#FF29C9
background
#F4F3F4
surface
#E6E5E7
border
#C2C1C3
text
#000001
muted
#777777

Preview Lab

Preview with #040010

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

Preview Lab → · Contrast checker → · Palette generator →

#040010 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva