#04020A#04020A

#04020A is a very dark, muted violet. Relative luminance 0.001; OKLCH L 10.0% C 0.027 H 297.4°. Best body text is #FFFFFF at 20.62:1 contrast (WCAG AA passes).

Color values

HEX#04020A
RGBrgb(4, 2, 10)
HSLhsl(255, 67%, 2%)
HSVhsv(255, 80%, 4%)
CMYKcmyk(60%, 80%, 0%, 96.1%)
CIE-LABlab(0.82, 1.64, -2.84)
CIE-LCHlch(0.82, 3.28, 299.96°)
OKLaboklab(9.97% 0.0126 -0.0243)
OKLCHoklch(9.97% 0.027 297.4)
XYZxyz(0.1266, 0.0911, 0.2980)
Luminance0.0009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04020A #080A02
analogous
#02040A #04020A #08020A
triadic
#04020A #0A0402 #020A04
tetradic
#04020A #0A0204 #080A02 #020A08
square
#04020A #0A0204 #080A02 #020A08
split-complementary
#04020A #0A0802 #040A02
monochromatic
#0A051A #0A051A #0A051A #180C3D #2D1670

Accessibility & contrast

On white

20.62
#04020A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#04020A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04020A
20.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04020A#FFFFFF#000000##FFFFFF
##04020A1.0020.621.0220.62
#FFFFFF20.621.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01030A
Deuteranopia (green-blind)
#01030A
Tritanopia (blue-blind)
#030304
Achromatopsia (no color)
#030303

Design tokens & code

CSS
--color: #04020a;
/* rgb */ color: rgb(4, 2, 10);
/* oklch */ color: oklch(10.0% 0.027 297.4);
Tailwind
colors: {
  custom: {
    50: '#48484b',
    500: '#04020a',
    950: '#000000',
  },
}
SCSS
$custom: #04020a;
$custom-light: #48484b;
$custom-dark: #000000;
JSON
{
  "hex": "#04020a",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 10
  },
  "hsl": {
    "h": 255,
    "s": 66.667,
    "l": 2.353
  },
  "oklch": {
    "l": 0.09966,
    "c": 0.02732,
    "h": 297.4
  },
  "luminance": 0.00091
}

Semantic roles & 50–950 ramp

primary
#04020A
secondary
#404C1C
accent
#EA3EBF
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #04020A

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

Preview Lab → · Contrast checker → · Palette generator →

#04020A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva