#040736#040736

#040736 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 17.2% C 0.090 H 268.9°. Best body text is #FFFFFF at 19.29:1 contrast (WCAG AA passes).

Color values

HEX#040736
RGBrgb(4, 7, 54)
HSLhsl(236, 86%, 11%)
HSVhsv(236, 93%, 21%)
CMYKcmyk(92.6%, 87%, 0%, 78.8%)
CIE-LABlab(4.01, 15.14, -29.29)
CIE-LCHlch(4.01, 32.97, 297.34°)
OKLaboklab(17.24% -0.0017 -0.0896)
OKLCHoklch(17.24% 0.09 268.9)
XYZxyz(0.7917, 0.4440, 3.5333)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040736 #363304
analogous
#042036 #040736 #1A0436
triadic
#040736 #360407 #073604
tetradic
#040736 #360420 #363304 #04361A
square
#040736 #360420 #363304 #04361A
split-complementary
#040736 #361A04 #203604
monochromatic
#02041C #02041C #040736 #080E6F #0C16A8

Accessibility & contrast

On white

19.29
#040736 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#040736 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040736
19.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040736#FFFFFF#000000##FFFFFF
##0407361.0019.291.0919.29
#FFFFFF19.291.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001137
Deuteranopia (green-blind)
#000C35
Tritanopia (blue-blind)
#00151E
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040736;
/* rgb */ color: rgb(4, 7, 54);
/* oklch */ color: oklch(17.2% 0.090 268.9);
Tailwind
colors: {
  custom: {
    50: '#4d496d',
    500: '#040736',
    950: '#000000',
  },
}
SCSS
$custom: #040736;
$custom-light: #4d496d;
$custom-dark: #000000;
JSON
{
  "hex": "#040736",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 54
  },
  "hsl": {
    "h": 236.4,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.17237,
    "c": 0.08961,
    "h": 268.9
  },
  "luminance": 0.00444
}

Semantic roles & 50–950 ramp

primary
#040736
secondary
#78731E
accent
#F02BFC
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #040736

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

Preview Lab → · Contrast checker → · Palette generator →

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