#04010E#04010E

#04010E is a very dark, muted violet. Relative luminance 0.001; OKLCH L 9.7% C 0.041 H 295.1°. Best body text is #FFFFFF at 20.67:1 contrast (WCAG AA passes).

Color values

HEX#04010E
RGBrgb(4, 1, 14)
HSLhsl(254, 87%, 3%)
HSVhsv(254, 93%, 5%)
CMYKcmyk(71.4%, 92.9%, 0%, 94.5%)
CIE-LABlab(0.72, 2.66, -4.82)
CIE-LCHlch(0.72, 5.51, 298.88°)
OKLaboklab(9.73% 0.0174 -0.037)
OKLCHoklch(9.73% 0.041 295.1)
XYZxyz(0.1402, 0.0792, 0.4233)
Luminance0.0008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04010E #0B0E01
analogous
#01040E #04010E #0A010E
triadic
#04010E #0E0401 #010E04
tetradic
#04010E #0E0104 #0B0E01 #010E0A
square
#04010E #0E0104 #0B0E01 #010E0A
split-complementary
#04010E #0E0A01 #040E01
monochromatic
#08021D #08021D #08021D #140547 #250980

Accessibility & contrast

On white

20.67
#04010E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#04010E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04010E
20.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04010E#FFFFFF#000000##FFFFFF
##04010E1.0020.671.0220.67
#FFFFFF20.671.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00030F
Deuteranopia (green-blind)
#00020E
Tritanopia (blue-blind)
#020305
Achromatopsia (no color)
#030303

Design tokens & code

CSS
--color: #04010e;
/* rgb */ color: rgb(4, 1, 14);
/* oklch */ color: oklch(9.7% 0.041 295.1);
Tailwind
colors: {
  custom: {
    50: '#48474d',
    500: '#04010e',
    950: '#000000',
  },
}
SCSS
$custom: #04010e;
$custom-light: #48474d;
$custom-dark: #000000;
JSON
{
  "hex": "#04010e",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 14
  },
  "hsl": {
    "h": 253.846,
    "s": 86.667,
    "l": 2.941
  },
  "oklch": {
    "l": 0.09727,
    "c": 0.04092,
    "h": 295.1
  },
  "luminance": 0.00079
}

Semantic roles & 50–950 ramp

primary
#04010E
secondary
#475615
accent
#FD2BCC
background
#F4F3F4
surface
#E6E5E7
border
#C2C1C3
text
#000001
muted
#777777

Preview Lab

Preview with #04010E

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

Preview Lab → · Contrast checker → · Palette generator →

#04010E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva