#04021A#04021A

#04021A is a very dark, muted blue. Relative luminance 0.001; OKLCH L 11.9% C 0.056 H 280.2°. Best body text is #FFFFFF at 20.41:1 contrast (WCAG AA passes).

Color values

HEX#04021A
RGBrgb(4, 2, 26)
HSLhsl(245, 86%, 5%)
HSVhsv(245, 92%, 10%)
CMYKcmyk(84.6%, 92.3%, 0%, 89.8%)
CIE-LABlab(1.30, 4.98, -11.93)
CIE-LCHlch(1.30, 12.93, 292.64°)
OKLaboklab(11.87% 0.01 -0.0554)
OKLCHoklch(11.87% 0.056 280.2)
XYZxyz(0.2582, 0.1438, 0.9912)
Luminance0.0014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04021A #181A02
analogous
#020C1A #04021A #10021A
triadic
#04021A #1A0402 #021A04
tetradic
#04021A #1A020C #181A02 #021A10
square
#04021A #1A020C #181A02 #021A10
split-complementary
#04021A #1A1002 #0C1A02
monochromatic
#04021C #04021C #04021C #0D0653 #150B8C

Accessibility & contrast

On white

20.41
#04021A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#04021A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04021A
20.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04021A#FFFFFF#000000##FFFFFF
##04021A1.0020.411.0320.41
#FFFFFF20.411.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04021a;
/* rgb */ color: rgb(4, 2, 26);
/* oklch */ color: oklch(11.9% 0.056 280.2);
Tailwind
colors: {
  custom: {
    50: '#484856',
    500: '#04021a',
    950: '#000000',
  },
}
SCSS
$custom: #04021a;
$custom-light: #484856;
$custom-dark: #000000;
JSON
{
  "hex": "#04021a",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 26
  },
  "hsl": {
    "h": 245,
    "s": 85.714,
    "l": 5.49
  },
  "oklch": {
    "l": 0.11871,
    "c": 0.05627,
    "h": 280.2
  },
  "luminance": 0.00144
}

Semantic roles & 50–950 ramp

primary
#04021A
secondary
#5A6018
accent
#FC2CEB
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000003
muted
#777778

Preview Lab

Preview with #04021A

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

Preview Lab → · Contrast checker → · Palette generator →

#04021A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva