#040422#040422

#040422 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.7% C 0.064 H 274.1°. Best body text is #FFFFFF at 20.08:1 contrast (WCAG AA passes).

Color values

HEX#040422
RGBrgb(4, 4, 34)
HSLhsl(240, 79%, 7%)
HSVhsv(240, 88%, 13%)
CMYKcmyk(88.2%, 88.2%, 0%, 86.7%)
CIE-LABlab(2.06, 6.77, -17.20)
CIE-LCHlch(2.06, 18.48, 291.49°)
OKLaboklab(13.74% 0.0045 -0.0636)
OKLCHoklch(13.74% 0.064 274.1)
XYZxyz(0.3821, 0.2281, 1.5370)
Luminance0.0023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040422 #222204
analogous
#041322 #040422 #130422
triadic
#040422 #220404 #042204
tetradic
#040422 #220413 #222204 #042213
square
#040422 #220413 #222204 #042213
split-complementary
#040422 #221304 #132204
monochromatic
#03031B #03031B #040422 #0A0A59 #111190

Accessibility & contrast

On white

20.08
#040422 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#040422 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040422
20.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040422#FFFFFF#000000##FFFFFF
##0404221.0020.081.0520.08
#FFFFFF20.081.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000923
Deuteranopia (green-blind)
#000621
Tritanopia (blue-blind)
#000B11
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #040422;
/* rgb */ color: rgb(4, 4, 34);
/* oklch */ color: oklch(13.7% 0.064 274.1);
Tailwind
colors: {
  custom: {
    50: '#48485d',
    500: '#040422',
    950: '#000000',
  },
}
SCSS
$custom: #040422;
$custom-light: #48485d;
$custom-dark: #000000;
JSON
{
  "hex": "#040422",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 34
  },
  "hsl": {
    "h": 240,
    "s": 78.947,
    "l": 7.451
  },
  "oklch": {
    "l": 0.13739,
    "c": 0.06379,
    "h": 274.1
  },
  "luminance": 0.00228
}

Semantic roles & 50–950 ramp

primary
#040422
secondary
#65651D
accent
#F532F5
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #040422

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

Preview Lab → · Contrast checker → · Palette generator →

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