#040013#040013

#040013 is a very dark, muted violet. Relative luminance 0.001; OKLCH L 9.7% C 0.055 H 291.2°. Best body text is #FFFFFF at 20.70:1 contrast (WCAG AA passes).

Color values

HEX#040013
RGBrgb(4, 0, 19)
HSLhsl(253, 100%, 4%)
HSVhsv(253, 100%, 7%)
CMYKcmyk(78.9%, 100%, 0%, 92.5%)
CIE-LABlab(0.66, 4.03, -7.75)
CIE-LCHlch(0.66, 8.74, 297.48°)
OKLaboklab(9.74% 0.0198 -0.051)
OKLCHoklch(9.74% 0.055 291.2)
XYZxyz(0.1676, 0.0728, 0.6212)
Luminance0.0007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040013 #0F1300
analogous
#000513 #040013 #0D0013
triadic
#040013 #130400 #001304
tetradic
#040013 #130005 #0F1300 #00130D
square
#040013 #130005 #0F1300 #00130D
split-complementary
#040013 #130D00 #051300
monochromatic
#06001F #06001F #06001F #110050 #1E008D

Accessibility & contrast

On white

20.70
#040013 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040013
20.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040013#FFFFFF#000000##FFFFFF
##0400131.0020.701.0120.70
#FFFFFF20.701.0021.001.00
#0000001.0121.001.0021.00
##FFFFFF20.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000314
Deuteranopia (green-blind)
#000213
Tritanopia (blue-blind)
#010307
Achromatopsia (no color)
#020202

Design tokens & code

CSS
--color: #040013;
/* rgb */ color: rgb(4, 0, 19);
/* oklch */ color: oklch(9.7% 0.055 291.2);
Tailwind
colors: {
  custom: {
    50: '#484750',
    500: '#040013',
    950: '#000000',
  },
}
SCSS
$custom: #040013;
$custom-light: #484750;
$custom-dark: #000000;
JSON
{
  "hex": "#040013",
  "rgb": {
    "r": 4,
    "g": 0,
    "b": 19
  },
  "hsl": {
    "h": 252.632,
    "s": 100,
    "l": 3.725
  },
  "oklch": {
    "l": 0.09736,
    "c": 0.0547,
    "h": 291.2
  },
  "luminance": 0.00073
}

Semantic roles & 50–950 ramp

primary
#040013
secondary
#4E5E11
accent
#FF29D2
background
#F4F3F4
surface
#E6E5E7
border
#C2C1C3
text
#000002
muted
#777778

Preview Lab

Preview with #040013

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

Preview Lab → · Contrast checker → · Palette generator →

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