#040436#040436

#040436 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.5% C 0.094 H 269.8°. Best body text is #FFFFFF at 19.52:1 contrast (WCAG AA passes).

Color values

HEX#040436
RGBrgb(4, 4, 54)
HSLhsl(240, 86%, 11%)
HSVhsv(240, 93%, 21%)
CMYKcmyk(92.6%, 92.6%, 0%, 78.8%)
CIE-LABlab(3.42, 16.34, -30.24)
CIE-LCHlch(3.42, 34.37, 298.39°)
OKLaboklab(16.55% -0.0003 -0.0942)
OKLCHoklch(16.55% 0.094 269.8)
XYZxyz(0.7591, 0.3789, 3.5224)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040436 #363604
analogous
#041D36 #040436 #1D0436
triadic
#040436 #360404 #043604
tetradic
#040436 #36041D #363604 #04361D
square
#040436 #36041D #363604 #04361D
split-complementary
#040436 #361D04 #1D3604
monochromatic
#02021C #02021C #040436 #08086F #0C0CA8

Accessibility & contrast

On white

19.52
#040436 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#040436 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040436
19.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040436#FFFFFF#000000##FFFFFF
##0404361.0019.521.0819.52
#FFFFFF19.521.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F37
Deuteranopia (green-blind)
#000A35
Tritanopia (blue-blind)
#00131D
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040436;
/* rgb */ color: rgb(4, 4, 54);
/* oklch */ color: oklch(16.5% 0.094 269.8);
Tailwind
colors: {
  custom: {
    50: '#4c486d',
    500: '#040436',
    950: '#000000',
  },
}
SCSS
$custom: #040436;
$custom-light: #4c486d;
$custom-dark: #000000;
JSON
{
  "hex": "#040436",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 54
  },
  "hsl": {
    "h": 240,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.16547,
    "c": 0.09424,
    "h": 269.8
  },
  "luminance": 0.00379
}

Semantic roles & 50–950 ramp

primary
#040436
secondary
#78781E
accent
#FC2BFC
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #040436

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

Preview Lab → · Contrast checker → · Palette generator →

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