#040220#040220

#040220 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 12.7% C 0.066 H 277.0°. Best body text is #FFFFFF at 20.29:1 contrast (WCAG AA passes).

Color values

HEX#040220
RGBrgb(4, 2, 32)
HSLhsl(244, 88%, 7%)
HSVhsv(244, 94%, 13%)
CMYKcmyk(87.5%, 93.8%, 0%, 87.5%)
CIE-LABlab(1.57, 6.86, -16.37)
CIE-LCHlch(1.57, 17.75, 292.74°)
OKLaboklab(12.72% 0.008 -0.0654)
OKLCHoklch(12.72% 0.066 277)
XYZxyz(0.3324, 0.1735, 1.3822)
Luminance0.0017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040220 #1E2002
analogous
#020F20 #040220 #130220
triadic
#040220 #200402 #022004
tetradic
#040220 #20020F #1E2002 #022013
square
#040220 #20020F #1E2002 #022013
split-complementary
#040220 #201302 #0F2002
monochromatic
#04021D #04021D #040220 #0B065A #120993

Accessibility & contrast

On white

20.29
#040220 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040220
20.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040220#FFFFFF#000000##FFFFFF
##0402201.0020.291.0320.29
#FFFFFF20.291.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000721
Deuteranopia (green-blind)
#00051F
Tritanopia (blue-blind)
#00090F
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #040220;
/* rgb */ color: rgb(4, 2, 32);
/* oklch */ color: oklch(12.7% 0.066 277.0);
Tailwind
colors: {
  custom: {
    50: '#48485b',
    500: '#040220',
    950: '#000000',
  },
}
SCSS
$custom: #040220;
$custom-light: #48485b;
$custom-dark: #000000;
JSON
{
  "hex": "#040220",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 32
  },
  "hsl": {
    "h": 244,
    "s": 88.235,
    "l": 6.667
  },
  "oklch": {
    "l": 0.12715,
    "c": 0.06586,
    "h": 277
  },
  "luminance": 0.00174
}

Semantic roles & 50–950 ramp

primary
#040220
secondary
#616618
accent
#FE29F0
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #040220

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

Preview Lab → · Contrast checker → · Palette generator →

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