#040206#040206

#040206 is a very dark, near-neutral violet. Relative luminance 0.001; OKLCH L 9.6% C 0.018 H 309.8°. Best body text is #FFFFFF at 20.66:1 contrast (WCAG AA passes).

Color values

HEX#040206
RGBrgb(4, 2, 6)
HSLhsl(270, 50%, 2%)
HSVhsv(270, 67%, 2%)
CMYKcmyk(33.3%, 66.7%, 0%, 97.6%)
CIE-LABlab(0.74, 1.08, -1.33)
CIE-LCHlch(0.74, 1.71, 309.02°)
OKLaboklab(9.57% 0.0116 -0.0139)
OKLCHoklch(9.57% 0.018 309.8)
XYZxyz(0.1046, 0.0824, 0.1826)
Luminance0.0008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040206 #040602
analogous
#020206 #040206 #060206
triadic
#040206 #060402 #020604
tetradic
#040206 #060202 #040602 #020606
square
#040206 #060202 #040602 #020606
split-complementary
#040206 #060602 #020602
monochromatic
#0F0817 #0F0817 #0F0817 #231134 #412162

Accessibility & contrast

On white

20.66
#040206 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040206
20.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040206#FFFFFF#000000##FFFFFF
##0402061.0020.661.0220.66
#FFFFFF20.661.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010306
Deuteranopia (green-blind)
#020306
Tritanopia (blue-blind)
#040203
Achromatopsia (no color)
#030303

Design tokens & code

CSS
--color: #040206;
/* rgb */ color: rgb(4, 2, 6);
/* oklch */ color: oklch(9.6% 0.018 309.8);
Tailwind
colors: {
  custom: {
    50: '#484849',
    500: '#040206',
    950: '#000000',
  },
}
SCSS
$custom: #040206;
$custom-light: #484849;
$custom-dark: #000000;
JSON
{
  "hex": "#040206",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 6
  },
  "hsl": {
    "h": 270,
    "s": 50,
    "l": 1.569
  },
  "oklch": {
    "l": 0.09566,
    "c": 0.01808,
    "h": 309.8
  },
  "luminance": 0.00082
}

Semantic roles & 50–950 ramp

primary
#040206
secondary
#324320
accent
#DA4E94
background
#F4F4F4
surface
#E6E6E6
border
#C2C2C2
text
#000000
muted
#777777

Preview Lab

Preview with #040206

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

Preview Lab → · Contrast checker → · Palette generator →

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