#040D36#040D36

#040D36 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.5% C 0.081 H 266.5°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#040D36
RGBrgb(4, 13, 54)
HSLhsl(229, 86%, 11%)
HSVhsv(229, 93%, 21%)
CMYKcmyk(92.6%, 75.9%, 0%, 78.8%)
CIE-LABlab(5.24, 12.63, -27.31)
CIE-LCHlch(5.24, 30.09, 294.82°)
OKLaboklab(18.52% -0.0049 -0.0811)
OKLCHoklch(18.52% 0.081 266.5)
XYZxyz(0.8596, 0.5799, 3.5559)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D36 #362D04
analogous
#042636 #040D36 #140436
triadic
#040D36 #36040D #0D3604
tetradic
#040D36 #360426 #362D04 #043614
square
#040D36 #360426 #362D04 #043614
split-complementary
#040D36 #361404 #263604
monochromatic
#02071C #02071C #040D36 #081B6F #0C28A8

Accessibility & contrast

On white

18.82
#040D36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#040D36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040D36
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D36#FFFFFF#000000##FFFFFF
##040D361.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001437
Deuteranopia (green-blind)
#000F35
Tritanopia (blue-blind)
#00181F
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040d36;
/* rgb */ color: rgb(4, 13, 54);
/* oklch */ color: oklch(18.5% 0.081 266.5);
Tailwind
colors: {
  custom: {
    50: '#4d4c6d',
    500: '#040d36',
    950: '#000000',
  },
}
SCSS
$custom: #040d36;
$custom-light: #4d4c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#040d36",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 54
  },
  "hsl": {
    "h": 229.2,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.18522,
    "c": 0.08122,
    "h": 266.5
  },
  "luminance": 0.0058
}

Semantic roles & 50–950 ramp

primary
#040D36
secondary
#78681E
accent
#D72BFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #040D36

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

Preview Lab → · Contrast checker → · Palette generator →

#040D36 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva