#040208#040208

#040208 is a very dark, muted violet. Relative luminance 0.001; OKLCH L 9.8% C 0.023 H 302.1°. Best body text is #FFFFFF at 20.64:1 contrast (WCAG AA passes).

Color values

HEX#040208
RGBrgb(4, 2, 8)
HSLhsl(260, 60%, 2%)
HSVhsv(260, 75%, 3%)
CMYKcmyk(50%, 75%, 0%, 96.9%)
CIE-LABlab(0.78, 1.36, -2.09)
CIE-LCHlch(0.78, 2.49, 303.03°)
OKLaboklab(9.77% 0.0122 -0.0195)
OKLCHoklch(9.77% 0.023 302.1)
XYZxyz(0.1156, 0.0868, 0.2403)
Luminance0.0009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040208 #060802
analogous
#020308 #040208 #070208
triadic
#040208 #080402 #020804
tetradic
#040208 #080203 #060802 #020807
square
#040208 #080203 #060802 #020807
split-complementary
#040208 #080702 #030802
monochromatic
#0C0618 #0C0618 #0C0618 #1C0E39 #351A6A

Accessibility & contrast

On white

20.64
#040208 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040208
20.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040208#FFFFFF#000000##FFFFFF
##0402081.0020.641.0220.64
#FFFFFF20.641.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040208;
/* rgb */ color: rgb(4, 2, 8);
/* oklch */ color: oklch(9.8% 0.023 302.1);
Tailwind
colors: {
  custom: {
    50: '#48484a',
    500: '#040208',
    950: '#000000',
  },
}
SCSS
$custom: #040208;
$custom-light: #48484a;
$custom-dark: #000000;
JSON
{
  "hex": "#040208",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 8
  },
  "hsl": {
    "h": 260,
    "s": 60,
    "l": 1.961
  },
  "oklch": {
    "l": 0.0977,
    "c": 0.02305,
    "h": 302.1
  },
  "luminance": 0.00087
}

Semantic roles & 50–950 ramp

primary
#040208
secondary
#3A481E
accent
#E345AE
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #040208

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

Preview Lab → · Contrast checker → · Palette generator →

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