#040836#040836

#040836 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.5% C 0.088 H 268.6°. Best body text is #FFFFFF at 19.21:1 contrast (WCAG AA passes).

Color values

HEX#040836
RGBrgb(4, 8, 54)
HSLhsl(235, 86%, 11%)
HSVhsv(235, 93%, 21%)
CMYKcmyk(92.6%, 85.2%, 0%, 78.8%)
CIE-LABlab(4.21, 14.74, -28.98)
CIE-LCHlch(4.21, 32.51, 296.97°)
OKLaboklab(17.46% -0.0022 -0.0881)
OKLCHoklch(17.46% 0.088 268.6)
XYZxyz(0.8025, 0.4657, 3.5369)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040836 #363204
analogous
#042136 #040836 #190436
triadic
#040836 #360408 #083604
tetradic
#040836 #360421 #363204 #043619
square
#040836 #360421 #363204 #043619
split-complementary
#040836 #361904 #213604
monochromatic
#02041C #02041C #040836 #08106F #0C19A8

Accessibility & contrast

On white

19.21
#040836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040836
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040836#FFFFFF#000000##FFFFFF
##0408361.0019.211.0919.21
#FFFFFF19.211.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040836;
/* rgb */ color: rgb(4, 8, 54);
/* oklch */ color: oklch(17.5% 0.088 268.6);
Tailwind
colors: {
  custom: {
    50: '#4d496d',
    500: '#040836',
    950: '#000000',
  },
}
SCSS
$custom: #040836;
$custom-light: #4d496d;
$custom-dark: #000000;
JSON
{
  "hex": "#040836",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 54
  },
  "hsl": {
    "h": 235.2,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.17455,
    "c": 0.08817,
    "h": 268.6
  },
  "luminance": 0.00466
}

Semantic roles & 50–950 ramp

primary
#040836
secondary
#78711E
accent
#EC2BFC
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #040836

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

Preview Lab → · Contrast checker → · Palette generator →

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