#040205#040205

#040205 is a very dark, near-neutral purple. Relative luminance 0.001; OKLCH L 9.5% C 0.015 H 316.3°. Best body text is #FFFFFF at 20.67:1 contrast (WCAG AA passes).

Color values

HEX#040205
RGBrgb(4, 2, 5)
HSLhsl(280, 43%, 1%)
HSVhsv(280, 60%, 2%)
CMYKcmyk(20%, 60%, 0%, 98%)
CIE-LABlab(0.72, 0.94, -0.95)
CIE-LCHlch(0.72, 1.34, 314.70°)
OKLaboklab(9.46% 0.0111 -0.0106)
OKLCHoklch(9.46% 0.015 316.3)
XYZxyz(0.0992, 0.0802, 0.1538)
Luminance0.0008 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040205 #030502
analogous
#030205 #040205 #050205
triadic
#040205 #050402 #020504
tetradic
#040205 #050302 #030502 #020505
square
#040205 #050302 #030502 #020505
split-complementary
#040205 #050502 #020503
monochromatic
#110916 #110916 #110916 #271331 #4A255C

Accessibility & contrast

On white

20.67
#040205 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#040205 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##040205#FFFFFF#000000##FFFFFF
##0402051.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)
#020305
Deuteranopia (green-blind)
#020305
Tritanopia (blue-blind)
#040203
Achromatopsia (no color)
#030303

Design tokens & code

CSS
--color: #040205;
/* rgb */ color: rgb(4, 2, 5);
/* oklch */ color: oklch(9.5% 0.015 316.3);
Tailwind
colors: {
  custom: {
    50: '#484849',
    500: '#040205',
    950: '#000000',
  },
}
SCSS
$custom: #040205;
$custom-light: #484849;
$custom-dark: #000000;
JSON
{
  "hex": "#040205",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 5
  },
  "hsl": {
    "h": 280,
    "s": 42.857,
    "l": 1.373
  },
  "oklch": {
    "l": 0.0946,
    "c": 0.01529,
    "h": 316.3
  },
  "luminance": 0.0008
}

Semantic roles & 50–950 ramp

primary
#040205
secondary
#2C4023
accent
#D3557F
background
#F4F4F4
surface
#E6E6E6
border
#C2C2C2
text
#000000
muted
#777777

Preview Lab

Preview with #040205

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

Preview Lab → · Contrast checker → · Palette generator →

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