#040207#040207

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

Color values

HEX#040207
RGBrgb(4, 2, 7)
HSLhsl(264, 56%, 2%)
HSVhsv(264, 71%, 3%)
CMYKcmyk(42.9%, 71.4%, 0%, 97.3%)
CIE-LABlab(0.76, 1.22, -1.71)
CIE-LCHlch(0.76, 2.10, 305.46°)
OKLaboklab(9.67% 0.012 -0.0168)
OKLCHoklch(9.67% 0.021 305.4)
XYZxyz(0.1101, 0.0846, 0.2115)
Luminance0.0008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040207 #050702
analogous
#020307 #040207 #070207
triadic
#040207 #070402 #020704
tetradic
#040207 #070203 #050702 #020707
square
#040207 #070203 #050702 #020707
split-complementary
#040207 #070702 #030702
monochromatic
#0E0718 #0E0718 #0E0718 #1F1037 #3A1D66

Accessibility & contrast

On white

20.65
#040207 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040207
20.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040207#FFFFFF#000000##FFFFFF
##0402071.0020.651.0220.65
#FFFFFF20.651.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010307
Deuteranopia (green-blind)
#020307
Tritanopia (blue-blind)
#040304
Achromatopsia (no color)
#030303

Design tokens & code

CSS
--color: #040207;
/* rgb */ color: rgb(4, 2, 7);
/* oklch */ color: oklch(9.7% 0.021 305.4);
Tailwind
colors: {
  custom: {
    50: '#48484a',
    500: '#040207',
    950: '#000000',
  },
}
SCSS
$custom: #040207;
$custom-light: #48484a;
$custom-dark: #000000;
JSON
{
  "hex": "#040207",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 7
  },
  "hsl": {
    "h": 264,
    "s": 55.556,
    "l": 1.765
  },
  "oklch": {
    "l": 0.09669,
    "c": 0.02065,
    "h": 305.4
  },
  "luminance": 0.00085
}

Semantic roles & 50–950 ramp

primary
#040207
secondary
#36461F
accent
#DF49A3
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #040207

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

Preview Lab → · Contrast checker → · Palette generator →

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