#040309#040309

#040309 is a very dark, near-neutral violet. Relative luminance 0.001; OKLCH L 10.5% C 0.020 H 292.8°. Best body text is #FFFFFF at 20.54:1 contrast (WCAG AA passes).

Color values

HEX#040309
RGBrgb(4, 3, 9)
HSLhsl(250, 50%, 2%)
HSVhsv(250, 67%, 4%)
CMYKcmyk(55.6%, 66.7%, 0%, 96.5%)
CIE-LABlab(1.00, 1.09, -2.18)
CIE-LCHlch(1.00, 2.44, 296.65°)
OKLaboklab(10.5% 0.0076 -0.0181)
OKLCHoklch(10.5% 0.02 292.8)
XYZxyz(0.1319, 0.1107, 0.2728)
Luminance0.0011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040309 #080903
analogous
#030509 #040309 #070309
triadic
#040309 #090403 #030904
tetradic
#040309 #090305 #080903 #030907
square
#040309 #090305 #080903 #030907
split-complementary
#040309 #090703 #050903
monochromatic
#0A0817 #0A0817 #0A0817 #181237 #2D2265

Accessibility & contrast

On white

20.54
#040309 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040309
20.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040309#FFFFFF#000000##FFFFFF
##0403091.0020.541.0220.54
#FFFFFF20.541.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#020409
Deuteranopia (green-blind)
#020409
Tritanopia (blue-blind)
#030405
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #040309;
/* rgb */ color: rgb(4, 3, 9);
/* oklch */ color: oklch(10.5% 0.020 292.8);
Tailwind
colors: {
  custom: {
    50: '#48484b',
    500: '#040309',
    950: '#000000',
  },
}
SCSS
$custom: #040309;
$custom-light: #48484b;
$custom-dark: #000000;
JSON
{
  "hex": "#040309",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 9
  },
  "hsl": {
    "h": 250,
    "s": 50,
    "l": 2.353
  },
  "oklch": {
    "l": 0.10503,
    "c": 0.01964,
    "h": 292.8
  },
  "luminance": 0.00111
}

Semantic roles & 50–950 ramp

primary
#040309
secondary
#404622
accent
#DA4EC2
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #040309

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

Preview Lab → · Contrast checker → · Palette generator →

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