#040219#040219

#040219 is a very dark, muted blue. Relative luminance 0.001; OKLCH L 11.7% C 0.055 H 280.9°. Best body text is #FFFFFF at 20.43:1 contrast (WCAG AA passes).

Color values

HEX#040219
RGBrgb(4, 2, 25)
HSLhsl(245, 85%, 5%)
HSVhsv(245, 92%, 10%)
CMYKcmyk(84%, 92%, 0%, 90.2%)
CIE-LABlab(1.26, 4.70, -11.18)
CIE-LCHlch(1.26, 12.13, 292.80°)
OKLaboklab(11.74% 0.0103 -0.0536)
OKLCHoklch(11.74% 0.055 280.9)
XYZxyz(0.2472, 0.1394, 0.9334)
Luminance0.0014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040219 #171902
analogous
#020B19 #040219 #0F0219
triadic
#040219 #190402 #021904
tetradic
#040219 #19020B #171902 #02190F
square
#040219 #19020B #171902 #02190F
split-complementary
#040219 #190F02 #0B1902
monochromatic
#05021C #05021C #05021C #0D0752 #160B8A

Accessibility & contrast

On white

20.43
#040219 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#040219 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040219
20.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040219#FFFFFF#000000##FFFFFF
##0402191.0020.431.0320.43
#FFFFFF20.431.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00051A
Deuteranopia (green-blind)
#000419
Tritanopia (blue-blind)
#00060B
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #040219;
/* rgb */ color: rgb(4, 2, 25);
/* oklch */ color: oklch(11.7% 0.055 280.9);
Tailwind
colors: {
  custom: {
    50: '#484855',
    500: '#040219',
    950: '#000000',
  },
}
SCSS
$custom: #040219;
$custom-light: #484855;
$custom-dark: #000000;
JSON
{
  "hex": "#040219",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 25
  },
  "hsl": {
    "h": 245.217,
    "s": 85.185,
    "l": 5.294
  },
  "oklch": {
    "l": 0.11735,
    "c": 0.05461,
    "h": 280.9
  },
  "luminance": 0.00139
}

Semantic roles & 50–950 ramp

primary
#040219
secondary
#595F18
accent
#FB2CE9
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000003
muted
#777778

Preview Lab

Preview with #040219

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

Preview Lab → · Contrast checker → · Palette generator →

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